We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isin
1 parent c3f3d85 commit 9acb495Copy full SHA for 9acb495
hdbscan/validity.py
@@ -180,8 +180,8 @@ def internal_minimum_spanning_tree(mr_distances):
180
# A little "fancy" we select from the flattened array reshape back
181
# (Fortran format to get indexing right) and take the product to do an and
182
# then convert back to boolean type.
183
- edge_selection = np.prod(np.isin(min_span_tree.T[:2], vertices).reshape(
184
- (min_span_tree.shape[0], 2), order='F'), axis=1).astype(bool)
+ edge_selection = np.prod(
+ np.isin(min_span_tree.T[:2], vertices), axis=0).astype(bool)
185
186
# Density sparseness is not well defined if there are no
187
# internal edges (as per the referenced paper). However
0 commit comments