Skip to content

Commit 8029ea9

Browse files
authored
Merge pull request #59 from brunoalano/master
Fixes the performance on `cosine` metric
2 parents f7c8546 + 1e65bda commit 8029ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdbscan/hdbscan_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
from .plots import CondensedTree, SingleLinkageTree, MinimumSpanningTree
3939

40-
FAST_METRICS = KDTree.valid_metrics + BallTree.valid_metrics
40+
FAST_METRICS = KDTree.valid_metrics + BallTree.valid_metrics + ['cosine', 'arccos']
4141

4242
# Supporting numpy prior to version 1.7 is a little painful ...
4343
if hasattr(np, 'isclose'):

0 commit comments

Comments
 (0)