haneulpark commited on
Commit
d8b1250
·
verified ·
1 Parent(s): a75f4dd

Update Preprocessing Script.py

Browse files
Files changed (1) hide show
  1. Preprocessing Script.py +4 -4
Preprocessing Script.py CHANGED
@@ -61,8 +61,8 @@ for substance_id, alert in problems:
61
 
62
  #5. Select columns and rename the dataset
63
 
64
- AA.rename(columns={'X': 'new SMILES'}, inplace=True)
65
- newAA = AA[['new SMILES', 'substance_id', 'aggref_index', 'logP', 'reference']]
66
 
67
  #6. Import modules to split the dataset
68
 
@@ -263,7 +263,7 @@ realistic_train, realistic_test = split_df_into_train_and_test_sets(realistic)
263
 
264
  #9. Select columns and name the datasets
265
 
266
- selected_columns = realistic_train[['new SMILES', 'substance_id', 'aggref_index', 'logP', 'reference']]
267
  selected_columns.to_csv("AggregatorAdvisor_train.csv", index=False)
268
- selected_columns = realistic_test[['new SMILES', 'substance_id', 'aggref_index', 'logP', 'reference']]
269
  selected_columns.to_csv("AggregatorAdvisor_test.csv", index=False)
 
61
 
62
  #5. Select columns and rename the dataset
63
 
64
+ AA.rename(columns={'X': 'SMILES'}, inplace=True)
65
+ newAA = AA[['SMILES', 'substance_id', 'aggref_index', 'logP', 'reference']]
66
 
67
  #6. Import modules to split the dataset
68
 
 
263
 
264
  #9. Select columns and name the datasets
265
 
266
+ selected_columns = realistic_train[['SMILES', 'substance_id', 'aggref_index', 'logP', 'reference']]
267
  selected_columns.to_csv("AggregatorAdvisor_train.csv", index=False)
268
+ selected_columns = realistic_test[['SMILES', 'substance_id', 'aggref_index', 'logP', 'reference']]
269
  selected_columns.to_csv("AggregatorAdvisor_test.csv", index=False)