From ad5068697cffa0b053e3869d8a76aa4b8dc0d4c1 Mon Sep 17 00:00:00 2001
From: Schneider Leo <leo.schneider@etu.ec-lyon.fr>
Date: Tue, 21 Jan 2025 16:18:02 +0100
Subject: [PATCH] rename output

---
 data/data_viz.py | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/data/data_viz.py b/data/data_viz.py
index 2af8596..fdfea89 100644
--- a/data/data_viz.py
+++ b/data/data_viz.py
@@ -165,11 +165,11 @@ def plot_res():
 
 def calc_and_plot_res():
     all_data=[]
-    base = 'out_early_stop_'
-    for name in ['ISA_noc_mox_ISA_noc_mox','ISA_noc_aug_005_mox_ISA_noc_mox','ISA_noc_aug_01_mox_ISA_noc_mox',
-                 'ISA_noc_aug_02_mox_ISA_noc_mox','ISA_noc_aug_03_mox_ISA_noc_mox','ISA_noc_aug_04_mox_ISA_noc_mox',
-                 'ISA_noc_aug_05_mox_ISA_noc_mox','ISA_noc_aug_07_mox_ISA_noc_mox','ISA_noc_aug_1_mox_ISA_noc_mox',
-                 'ISA_noc_aug_all_mox_ISA_noc_mox','prosit_mod_ISA_noc_mox']:
+    base = 'out_'
+    for name in ['early_stop_plasma_plasma','plasma_aug_005_plasma','plasma_aug_01_plasma',
+                 'plasma_aug_02_plasma','plasma_aug_03_plasma','plasma_aug_04_plasma',
+                 'plasma_aug_05_plasma','plasma_aug_07_plasma','plasma_aug_1_plasma',
+                 'plasma_aug_all_plasma','prosit_plasma']:
         print(name)
         r2_list=[]
         for index in range(10):
@@ -183,9 +183,9 @@ def calc_and_plot_res():
     # adding horizontal grid lines
     axs.yaxis.grid(True)
     axs.set_xticks([y + 1 for y in range(len(all_data))],
-                   labels=[ 'ISA_noc', 'Augm 0.05', 'Augm 0.1', 'Augm 0.2', 'Augm 0.3', 'Augm 0.4', 'Augm 0.5', 'Augm 0.7',
+                   labels=[ 'plasma', 'Augm 0.05', 'Augm 0.1', 'Augm 0.2', 'Augm 0.3', 'Augm 0.4', 'Augm 0.5', 'Augm 0.7',
                            'Augm 1', 'Augm all', 'Prosit', ])
-    plt.savefig('../fig/model perf/summary_early_stop_mox.png')
+    plt.savefig('../fig/model perf/summary_early_stop_plasma.png')
 
 def error_by_methionine(dataframe):
     def fonc(a):
@@ -217,7 +217,7 @@ def filter_outlier_rt(dataframe):
     return df_out
 
 if __name__ == '__main__' :
-    # calc_and_plot_res()
+    calc_and_plot_res()
     # base = ['plasma_plasma','plasma_prosit']
     # # augmented = ['ISA_aug_07_ISA_noc','ISA_aug_1_ISA_noc','ISA_aug_all_ISA_noc']
     # for f_suffix_name in base:
@@ -232,6 +232,6 @@ if __name__ == '__main__' :
     # for number in range(10):
     #     df = pd.read_csv('../output/out_{}_{}.csv'.format('early_stop_ISA_noc_prosit',str(number)))
     #     error_by_methionine(df)
-    dataframe = pd.read_csv('../output/out_early_stop_plasma_prosit_0.csv')
-    df = filter_outlier_rt(dataframe)
-    df.to_csv('../data/data_PXD006109/data_prosit_outlier.csv', index=False)
\ No newline at end of file
+    # dataframe = pd.read_csv('../output/out_early_stop_plasma_prosit_0.csv')
+    # df = filter_outlier_rt(dataframe)
+    # df.to_csv('../data/data_PXD006109/data_prosit_outlier.csv', index=False)
\ No newline at end of file
-- 
GitLab