8000 FIX test · scikit-learn/scikit-learn@8f59b23 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 div class="d-none">

Commit 8f59b23

Browse files
committed
FIX test
1 parent a7cd7cb commit 8f59b23

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sklearn/manifold/tests/test_mds.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ def test_MDS():
6565

6666
def test_svd_mds():
6767
# Generate 4 randomly chosen points
68-
Y = np.array([[1, 0, 1],
69-
[-1, 3, 2],
70-
[1, -2, 3],
71-
[2, -1, -3]])
68+
random_state = np.random.RandomState(seed=42)
69+
Y = random_state.randint(-10, 10, (10, 2))
7270
sim = euclidean_distances(Y)
7371
# calculate error or smacof-based solution
7472
X_smacof, smacof_stress = mds.smacof(sim, n_components=2, random_state=42)

0 commit comments

Comments
 (0)
0