haneulpark commited on
Commit
7605b4f
1 Parent(s): e7de196

Update Preprocessing Script.py

Browse files
Files changed (1) hide show
  1. Preprocessing Script.py +1 -2
Preprocessing Script.py CHANGED
@@ -161,7 +161,7 @@ for id, alert in problems:
161
  #5. Select columns and rename the dataset
162
 
163
  Long2023.rename(columns={'X': 'new SMILES', 'Y': 'Label'}, inplace=True)
164
- Long2023[['new SMILES', 'Label']].to_csv('Long2023.csv', index=False)
165
 
166
  #6. Import modules to split the dataset
167
 
@@ -349,7 +349,6 @@ def split_df_into_train_and_test_sets(df):
349
 
350
  # 8. Test and train datasets have been made
351
 
352
- HematoxLong2023=pd.read_csv("Long2023.csv")
353
  smiles_index = 0 # Because smiles is in the first column
354
  realistic = realistic_split(HematoxLong2023.copy(), smiles_index, 0.75, split_for_exact_frac=True, cluster_method="Auto")
355
  realistic_train, realistic_test = split_df_into_train_and_test_sets(realistic)
 
161
  #5. Select columns and rename the dataset
162
 
163
  Long2023.rename(columns={'X': 'new SMILES', 'Y': 'Label'}, inplace=True)
164
+ HematoxLong2023 = Long2023[['new SMILES', 'Label']]
165
 
166
  #6. Import modules to split the dataset
167
 
 
349
 
350
  # 8. Test and train datasets have been made
351
 
 
352
  smiles_index = 0 # Because smiles is in the first column
353
  realistic = realistic_split(HematoxLong2023.copy(), smiles_index, 0.75, split_for_exact_frac=True, cluster_method="Auto")
354
  realistic_train, realistic_test = split_df_into_train_and_test_sets(realistic)