Skip to content

Commit 9362f5f

Browse files
committed
test: finalize
1 parent ed89f6b commit 9362f5f

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

test/ml/expected/expected-pca-coordinates-negated.tsv renamed to test/ml/expected/expected-pca-coordinates-sorted-negated.tsv

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
datapoint_labels PC1 PC2
2+
centroid 0.0 0.0
3+
test-data-s1 -0.94594398 -0.46508182
4+
test-data-s2 -0.72014153 0.5090913
5+
test-data-s3 1.66608552 -0.04400948
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
datapoint_labels PC1 PC2
2-
centroid 0.0 0.0
32
test-data-s1 -0.94594398 -0.46508182
43
test-data-s2 -0.72014153 0.5090913
54
test-data-s3 1.66608552 -0.04400948
5+
centroid 0.0 0.0

test/ml/test_ml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def test_pca_robustness(self):
111111
INPUT_DIR + 'test-data-s3/s3.txt'])
112112
# PCA signage now depends on the input data: we need two differently signed PCA coordinate files.
113113
# See https://scikit-learn.org/stable/whats_new/v1.5.html#changed-models for more info.
114-
expected = pd.read_table(EXPECT_DIR + 'expected-pca-coordinates.tsv')
115-
expected_other = pd.read_table(EXPECT_DIR + 'expected-pca-coordinates-negated.tsv')
114+
expected = pd.read_table(EXPECT_DIR + 'expected-pca-coordinates-sorted.tsv')
115+
expected_other = pd.read_table(EXPECT_DIR + 'expected-pca-coordinates-sorted-negated.tsv')
116116
expected = expected.round(5)
117117
expected_other = expected_other.round(5)
118118
expected.sort_values(by='datapoint_labels', ignore_index=True, inplace=True)

0 commit comments

Comments
 (0)