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.
1 parent f58b545 commit 04c77feCopy full SHA for 04c77fe
hdbscan/tests/test_branches.py
@@ -267,7 +267,9 @@ def test_allow_single_branch_with_persistence():
267
).fit(c)
268
unique_labels = np.unique(b.labels_)
269
assert len(unique_labels) == 6
270
- assert np.sum(b.branch_probabilities_ == 0) == 71
+ # Mac & Windows give 71, Linux gives 72. Probably different random values.
271
+ num_noise = np.sum(b.branch_probabilities_ == 0)
272
+ assert (num_noise == 71) | (num_noise == 72)
273
274
# Adding presistence removes some branches
275
b = BranchDetector(
0 commit comments