Spaces:
Running
Running
change decimals to 3
Browse files- app/draw_diagram.py +4 -4
app/draw_diagram.py
CHANGED
@@ -74,7 +74,7 @@ def draw_cross_lingual(category_one, category_two, sort, sorted):
|
|
74 |
folder = "./results/cross_lingual/"
|
75 |
subtitle = ''
|
76 |
data_path = f'{folder}/{category_one}/{category_two}.csv'
|
77 |
-
chart_data = pd.read_csv(data_path).dropna(axis='columns').round(
|
78 |
|
79 |
if sorted == 'Ascending':
|
80 |
ascend = True
|
@@ -320,7 +320,7 @@ def draw_only_acc(folder_name, category_one, category_two, sorted):
|
|
320 |
|
321 |
subtitle = category_two_dict[category_two]
|
322 |
data_path = f'{folder}/{category_one}/{subtitle}.csv'
|
323 |
-
chart_data = pd.read_csv(data_path).round(
|
324 |
|
325 |
if sorted == 'Ascending':
|
326 |
ascend = True
|
@@ -400,7 +400,7 @@ def draw_flores_translation(category_one, category_two, sorted):
|
|
400 |
subtitle = category_two_dict[category_two]
|
401 |
|
402 |
data_path = f'{folder}/{category_one}/{subtitle}.csv'
|
403 |
-
chart_data = pd.read_csv(data_path).round(
|
404 |
|
405 |
if sorted == 'Ascending':
|
406 |
ascend = True
|
@@ -478,7 +478,7 @@ def draw_dialogue(category_one, category_two, sort, sorted):
|
|
478 |
subtitle = category_two_dict[category_two]
|
479 |
|
480 |
data_path = f'{folder}/{category_one}/{subtitle}.csv'
|
481 |
-
chart_data = pd.read_csv(data_path).round(
|
482 |
|
483 |
if sorted == 'Ascending':
|
484 |
ascend = True
|
|
|
74 |
folder = "./results/cross_lingual/"
|
75 |
subtitle = ''
|
76 |
data_path = f'{folder}/{category_one}/{category_two}.csv'
|
77 |
+
chart_data = pd.read_csv(data_path).dropna(axis='columns').round(3)
|
78 |
|
79 |
if sorted == 'Ascending':
|
80 |
ascend = True
|
|
|
320 |
|
321 |
subtitle = category_two_dict[category_two]
|
322 |
data_path = f'{folder}/{category_one}/{subtitle}.csv'
|
323 |
+
chart_data = pd.read_csv(data_path).round(3)
|
324 |
|
325 |
if sorted == 'Ascending':
|
326 |
ascend = True
|
|
|
400 |
subtitle = category_two_dict[category_two]
|
401 |
|
402 |
data_path = f'{folder}/{category_one}/{subtitle}.csv'
|
403 |
+
chart_data = pd.read_csv(data_path).round(3)
|
404 |
|
405 |
if sorted == 'Ascending':
|
406 |
ascend = True
|
|
|
478 |
subtitle = category_two_dict[category_two]
|
479 |
|
480 |
data_path = f'{folder}/{category_one}/{subtitle}.csv'
|
481 |
+
chart_data = pd.read_csv(data_path).round(3)
|
482 |
|
483 |
if sorted == 'Ascending':
|
484 |
ascend = True
|