Skip to content

Commit 2555a38

Browse files
committed
Made flat tests more deterministic
1 parent 5594c75 commit 2555a38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hdbscan/tests/test_flat.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
std = [0.5, 0.08, 0.06, 0.35, 0.35, 0.35]
2626
X0, y0 = make_blobs(n_samples=[70, 30, 80, 100, 40, 150],
2727
centers=centers,
28-
cluster_std=std)
29-
X1, y1 = make_moons(n_samples=300, noise=0.07)
28+
cluster_std=std,
29+
random_state=1)
30+
X1, y1 = make_moons(n_samples=300, noise=0.07, random_state=42)
3031
X1 += 3.
3132
y1 += len(centers)
3233
X = np.vstack((X0, X1))

0 commit comments

Comments
 (0)