Skip to content

Commit 1e65bda

Browse files
author
Bruno Alano
committed
Fixes the performance on cosine metric
1 parent f7c8546 commit 1e65bda

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)