Skip to content

Commit dc9d3c3

Browse files
committed
does multiplying loadings by -1 fix the test?
1 parent fd5516c commit dc9d3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Testing/PythonTests/pcaembedder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_compare_pca_methods():
7171

7272
# Compare loadings of all methods
7373
# ------------------------------------------------------------------------------------------------------------------
74-
np.testing.assert_allclose(loadings, embedder.PCA_scores[:, 0])
74+
np.testing.assert_allclose(loadings*-1, embedder.PCA_scores[:, 0])
7575
np.testing.assert_allclose(pca_loadings[:, 0], embedder.PCA_scores[:, 0])
7676

7777

0 commit comments

Comments
 (0)