Skip to content

Commit 43e4902

Browse files
committed
Fix get_max_score
1 parent 21c33b3 commit 43e4902

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

get_max_score.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
import numpy as np
22
import pandas as pd
33

4-
dataset = pd.read_csv('datasets/brazil_dataset_french_clean.csv')
4+
# select specific datasets
5+
import sys
6+
default_path = ''
7+
if (len(sys.argv) != 1):
8+
default_path = sys.argv[1]
9+
10+
11+
dataset = pd.read_csv('datasets/' + default_path + '.csv')
12+
13+
array = np.load('results/' + default_path + '.npy', allow_pickle=True)
514

615
unique, counts = np.unique(dataset.iloc[:, -1], return_counts=True)
716
amount = dict(zip(unique, counts))

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def read_datasets():
4343
if (custom_dataset != ''):
4444
tmp = selectFromList(csv_files, custom_dataset+'.csv')
4545
if (tmp):
46+
print("Using " + tmp + " as dataset.")
4647
csv_files = [tmp]
4748
else:
4849
print("No matching files found.")

0 commit comments

Comments
 (0)