Skip to content

Commit

Permalink
Merge pull request #323 from KeitaW/fix/duplication_warning
Browse files Browse the repository at this point in the history
Fix `DuplicationWarning` by importing the original libraries.
  • Loading branch information
lmcinnes authored Sep 16, 2019
2 parents d3da6a7 + 94f4968 commit 4248e23
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hdbscan/_hdbscan_boruvka.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ from sklearn.neighbors import KDTree, BallTree
import dist_metrics as dist_metrics
cimport dist_metrics as dist_metrics

from sklearn.externals.joblib import Parallel, delayed
from joblib import Parallel, delayed

cdef np.double_t INF = np.inf

Expand Down
2 changes: 1 addition & 1 deletion hdbscan/hdbscan_.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from scipy.sparse import issparse
from sklearn.neighbors import KDTree, BallTree
from joblib import Memory
from sklearn.externals import six
import six
from warnings import warn
from sklearn.utils import check_array
from joblib.parallel import cpu_count
Expand Down
2 changes: 1 addition & 1 deletion hdbscan/robust_single_linkage_.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from scipy.sparse import issparse

from joblib import Memory
from sklearn.externals import six
import six
from sklearn.utils import check_array

from ._hdbscan_linkage import mst_linkage_core, mst_linkage_core_vector, label
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ numpy>=1.16.0
scipy >= 0.9
scikit-learn>=0.17
joblib
six

0 comments on commit 4248e23

Please sign in to comment.