Skip to content

Commit 908e6a5

Browse files
committed
break test data symmetry to avoid heisenfailure in RandomizedPCA test
1 parent 5b5b709 commit 908e6a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scikits/learn/tests/test_pca.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ def test_randomized_pca_check_projection():
120120

121121
def test_randomized_pca_check_list():
122122
"""Test that the projection by RandomizedPCA on list data is correct"""
123-
X = [[1.0, 0.0], [0.0, 1.0]]
123+
X = [[1.0, 0.0], [0.0, 0.99]]
124124
X_transformed = RandomizedPCA(n_components=1).fit(X).transform(X)
125125
np.testing.assert_almost_equal(
126-
X_transformed, np.array([[-0.71], [0.71]]), 2)
126+
X_transformed, np.array([[0.70], [-0.70]]), 2)
127127

128128

129129
def test_randomized_pca_inverse():

0 commit comments

Comments
 (0)