File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 22from sklearn .metrics import pairwise_distances
33from scipy .spatial .distance import cdist
44from ._hdbscan_linkage import mst_linkage_core
5+ from .hdbscan_ import isclose
56
67def all_points_core_distance (distance_matrix , d = 2.0 ):
78 """
@@ -144,7 +145,7 @@ def internal_minimum_spanning_tree(mr_distances):
144145 single_linkage_data = mst_linkage_core (mr_distances )
145146 min_span_tree = single_linkage_data .copy ()
146147 for index , row in enumerate (min_span_tree [1 :], 1 ):
147- candidates = np .where (np . isclose (mr_distances [int (row [1 ])], row [2 ]))[0 ]
148+ candidates = np .where (isclose (mr_distances [int (row [1 ])], row [2 ]))[0 ]
148149 candidates = np .intersect1d (candidates ,
149150 single_linkage_data [:index , :2 ].astype (
150151 int ))
You can’t perform that action at this time.
0 commit comments