Skip to content

Commit 971cd90

Browse files
owpca: Ensure PCs are consistenly oriented with sklearn in tests
1 parent 6fc93d8 commit 971cd90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/unsupervised/tests/test_owpca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def test_normalized_gives_correct_result(self, prepare_table):
223223
x = (x - x.mean(0)) / x.std(0)
224224
U, S, Va = np.linalg.svd(x)
225225
U, S, Va = U[:, :2], S[:2], Va[:2]
226-
U, Va = svd_flip(U, Va)
226+
U, Va = svd_flip(U, Va, u_based_decision=False)
227227
pca_embedding = U * S
228228

229229
np.testing.assert_almost_equal(widget_result.X, pca_embedding)

0 commit comments

Comments
 (0)