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 5b5b709 commit 908e6a5Copy full SHA for 908e6a5
scikits/learn/tests/test_pca.py
@@ -120,10 +120,10 @@ def test_randomized_pca_check_projection():
120
121
def test_randomized_pca_check_list():
122
"""Test that the projection by RandomizedPCA on list data is correct"""
123
- X = [[1.0, 0.0], [0.0, 1.0]]
+ X = [[1.0, 0.0], [0.0, 0.99]]
124
X_transformed = RandomizedPCA(n_components=1).fit(X).transform(X)
125
np.testing.assert_almost_equal(
126
- X_transformed, np.array([[-0.71], [0.71]]), 2)
+ X_transformed, np.array([[0.70], [-0.70]]), 2)
127
128
129
def test_randomized_pca_inverse():
0 commit comments