ready2drop commited on
Commit
de11d67
·
verified ·
1 Parent(s): 51edc87
Files changed (1) hide show
  1. util.py +10 -1
util.py CHANGED
@@ -85,4 +85,13 @@ def load_data(data_dir : str,
85
  raise ValueError("Choose mode!")
86
 
87
 
88
-
 
 
 
 
 
 
 
 
 
 
85
  raise ValueError("Choose mode!")
86
 
87
 
88
+ def load_data_and_prepare(data_dir, excel_file, mode, scale, smote):
89
+ # Load train, validation, and test data
90
+ train_df,val_df = load_data(data_dir, excel_file, mode, scale, smote)
91
+
92
+ train_df.drop(columns=['patient_id','target'],inplace = True)
93
+ val_df.drop(columns=['patient_id','target'],inplace = True)
94
+
95
+ train = pd.concat([train_df,val_df],axis=0)
96
+
97
+ return train