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():
154
154
def test_fhdbscan_allow_single_cluster_with_epsilon ():
155
155
np .random .seed (0 )
156
156
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
158
158
c = HDBSCAN (
159
159
min_cluster_size = 5 ,
160
160
cluster_selection_epsilon = 0.0 ,
161
161
).fit (no_structure )
162
162
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
165
165
166
166
# An epsilon of 0.2 will produce 2 noise points and 2 labels
167
167
# Allow single cluster does not prevent applying the epsilon threshold.
You can’t perform that action at this time.
0 commit comments