Skip to content

Commit

Permalink
cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
ntalluri committed Sep 10, 2024
1 parent 6ae2666 commit e2e4f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ml/test_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_pca(self):
def test_pca_robustness(self):
dataframe = ml.summarize_networks([INPUT_DIR + 'test-data-s1/s1.txt', INPUT_DIR + 'test-data-s2/s2.txt', INPUT_DIR + 'test-data-s3/s3.txt'])

for _i in range(5):
for _ in range(5):
dataframe_shuffled = dataframe.sample(frac=1, axis=1) # permute the columns
ml.pca(dataframe_shuffled, OUT_DIR + 'pca-shuffled-columns.png', OUT_DIR + 'pca-shuffled-columns-variance.txt',
OUT_DIR + 'pca-shuffled-columns-coordinates.tsv')
Expand All @@ -77,7 +77,7 @@ def test_pca_robustness(self):

assert coord.equals(expected)

for _i in range(5):
for _ in range(5):
dataframe_shuffled = dataframe.sample(frac=1, axis=0) # permute the rows
ml.pca(dataframe_shuffled, OUT_DIR + 'pca-shuffled-rows.png', OUT_DIR + 'pca-shuffled-rows-variance.txt',
OUT_DIR + 'pca-shuffled-rows-coordinates.tsv')
Expand Down

0 comments on commit e2e4f00

Please sign in to comment.