File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,14 +154,14 @@ def test_hdbscan_badargs():
154154def test_fhdbscan_allow_single_cluster_with_epsilon ():
155155 np .random .seed (0 )
156156 no_structure = np .random .rand (150 , 2 )
157- # without epsilon we should see 68 noise points and 9 labels
157+ # without epsilon we should see 68 noise points and 8 labels
158158 c = HDBSCAN (
159159 min_cluster_size = 5 ,
160160 cluster_selection_epsilon = 0.0 ,
161161 ).fit (no_structure )
162162 unique_labels , counts = np .unique (c .labels_ , return_counts = True )
163- assert len (unique_labels ) == 9
164- assert counts [unique_labels == - 1 ] == 62
163+ assert len (unique_labels ) == 8
164+ assert counts [unique_labels == - 1 ] == 68
165165
166166 # An epsilon of 0.2 will produce 2 noise points and 2 labels
167167 # Allow single cluster does not prevent applying the epsilon threshold.
You can’t perform that action at this time.
0 commit comments