Spaces:
Paused
Paused
add scripts
Browse files- scripts/atom_bond_137k.sh +54 -0
- scripts/barriers_cycloadd.sh +45 -0
- scripts/barriers_e2.sh +41 -0
- scripts/barriers_rdb7.sh +41 -0
- scripts/barriers_rgd1.sh +41 -0
- scripts/barriers_sn2.sh +41 -0
- scripts/bde.sh +45 -0
- scripts/bde_charges.sh +54 -0
- scripts/charges_eps_4.sh +63 -0
- scripts/charges_eps_78.sh +63 -0
- scripts/hiv.sh +37 -0
- scripts/ir.sh +35 -0
- scripts/multi_molecule.sh +39 -0
- scripts/pcba_random.sh +37 -0
- scripts/pcba_random_nans.sh +37 -0
- scripts/pcba_scaffold.sh +37 -0
- scripts/pcqm4mv2.sh +36 -0
- scripts/qm9_gap.sh +39 -0
- scripts/qm9_multitask.sh +37 -0
- scripts/qm9_u0.sh +39 -0
- scripts/sampl.sh +83 -0
- scripts/timing.sh +58 -0
- scripts/uncertainty_ensemble.sh +49 -0
- scripts/uncertainty_evidential.sh +50 -0
- scripts/uncertainty_mve.sh +50 -0
scripts/atom_bond_137k.sh
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_atom_bond_137k
|
| 6 |
+
train_path=../data/atom_bond_137k/train.csv
|
| 7 |
+
val_path=../data/atom_bond_137k/val.csv
|
| 8 |
+
test_path=../data/atom_bond_137k/test.csv
|
| 9 |
+
train_constraints_path=../data/atom_bond_137k/train_constraints.csv
|
| 10 |
+
val_constraints_path=../data/atom_bond_137k/val_constraints.csv
|
| 11 |
+
test_constraints_path=../data/atom_bond_137k/test_constraints.csv
|
| 12 |
+
|
| 13 |
+
#Hyperparameter optimization
|
| 14 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 15 |
+
--dataset_type regression \
|
| 16 |
+
--data_path $train_path \
|
| 17 |
+
--separate_val_path $val_path \
|
| 18 |
+
--separate_test_path $val_path \
|
| 19 |
+
--constraints_path $train_constraints_path \
|
| 20 |
+
--separate_val_constraints_path $val_constraints_path \
|
| 21 |
+
--separate_test_constraints_path $val_constraints_path \
|
| 22 |
+
--num_iters 30 \
|
| 23 |
+
--epochs 50 \
|
| 24 |
+
--aggregation norm \
|
| 25 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 26 |
+
--config_save_path $results_dir/config.json \
|
| 27 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 28 |
+
--log_dir $results_dir \
|
| 29 |
+
--adding_h \
|
| 30 |
+
--is_atom_bond_targets \
|
| 31 |
+
--no_shared_atom_bond_ffn \
|
| 32 |
+
--no_adding_bond_types
|
| 33 |
+
|
| 34 |
+
#Training with optimized hyperparameters
|
| 35 |
+
python $chemprop_dir/train.py \
|
| 36 |
+
--dataset_type regression \
|
| 37 |
+
--data_path $train_path \
|
| 38 |
+
--separate_val_path $val_path \
|
| 39 |
+
--separate_test_path $test_path \
|
| 40 |
+
--constraints_path $train_constraints_path \
|
| 41 |
+
--separate_val_constraints_path $val_constraints_path \
|
| 42 |
+
--separate_test_constraints_path $test_constraints_path \
|
| 43 |
+
--epochs 50 \
|
| 44 |
+
--aggregation norm \
|
| 45 |
+
--config_path $results_dir/config.json \
|
| 46 |
+
--save_dir $results_dir \
|
| 47 |
+
--adding_h \
|
| 48 |
+
--is_atom_bond_targets \
|
| 49 |
+
--no_shared_atom_bond_ffn \
|
| 50 |
+
--no_adding_bond_types \
|
| 51 |
+
--ensemble_size 5 \
|
| 52 |
+
--save_preds \
|
| 53 |
+
--extra_metrics mae \
|
| 54 |
+
--show_individual_scores
|
scripts/barriers_cycloadd.sh
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_barriers_cycloadd
|
| 6 |
+
train_path=../data/barriers_cycloadd/train.csv
|
| 7 |
+
val_path=../data/barriers_cycloadd/val.csv
|
| 8 |
+
test_path=../data/barriers_cycloadd/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 100 \
|
| 17 |
+
--epochs 200 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout max_lr final_lr init_lr batch_size warmup_epochs \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--reaction \
|
| 24 |
+
--explicit_h \
|
| 25 |
+
--smiles_column rxn_smiles \
|
| 26 |
+
--target_columns G_act
|
| 27 |
+
|
| 28 |
+
#Training with optimized hyperparameters
|
| 29 |
+
python $chemprop_dir/train.py \
|
| 30 |
+
--dataset_type regression \
|
| 31 |
+
--data_path $train_path \
|
| 32 |
+
--separate_val_path $val_path \
|
| 33 |
+
--separate_test_path $test_path \
|
| 34 |
+
--epochs 200 \
|
| 35 |
+
--aggregation norm \
|
| 36 |
+
--config_path $results_dir/config.json \
|
| 37 |
+
--save_dir $results_dir \
|
| 38 |
+
--reaction \
|
| 39 |
+
--explicit_h \
|
| 40 |
+
--ensemble_size 5 \
|
| 41 |
+
--save_preds \
|
| 42 |
+
--extra_metrics mae \
|
| 43 |
+
--smiles_column rxn_smiles \
|
| 44 |
+
--target_columns G_act
|
| 45 |
+
|
scripts/barriers_e2.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_barriers_e2
|
| 6 |
+
train_path=../data/barriers_e2/train.csv
|
| 7 |
+
val_path=../data/barriers_e2/val.csv
|
| 8 |
+
test_path=../data/barriers_e2/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 100 \
|
| 17 |
+
--epochs 200 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout max_lr final_lr init_lr batch_size warmup_epochs \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--reaction \
|
| 24 |
+
--explicit_h
|
| 25 |
+
|
| 26 |
+
#Training with optimized hyperparameters
|
| 27 |
+
python $chemprop_dir/train.py \
|
| 28 |
+
--dataset_type regression \
|
| 29 |
+
--data_path $train_path \
|
| 30 |
+
--separate_val_path $val_path \
|
| 31 |
+
--separate_test_path $test_path \
|
| 32 |
+
--epochs 200 \
|
| 33 |
+
--aggregation norm \
|
| 34 |
+
--config_path $results_dir/config.json \
|
| 35 |
+
--save_dir $results_dir \
|
| 36 |
+
--reaction \
|
| 37 |
+
--explicit_h \
|
| 38 |
+
--ensemble_size 5 \
|
| 39 |
+
--save_preds \
|
| 40 |
+
--extra_metrics mae
|
| 41 |
+
|
scripts/barriers_rdb7.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_barriers_rdb7
|
| 6 |
+
train_path=../data/barriers_rdb7/train.csv
|
| 7 |
+
val_path=../data/barriers_rdb7/val.csv
|
| 8 |
+
test_path=../data/barriers_rdb7/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--reaction \
|
| 24 |
+
--explicit_h
|
| 25 |
+
|
| 26 |
+
#Training with optimized hyperparameters
|
| 27 |
+
python $chemprop_dir/train.py \
|
| 28 |
+
--dataset_type regression \
|
| 29 |
+
--data_path $train_path \
|
| 30 |
+
--separate_val_path $val_path \
|
| 31 |
+
--separate_test_path $test_path \
|
| 32 |
+
--epochs 50 \
|
| 33 |
+
--aggregation norm \
|
| 34 |
+
--config_path $results_dir/config.json \
|
| 35 |
+
--save_dir $results_dir \
|
| 36 |
+
--reaction \
|
| 37 |
+
--explicit_h \
|
| 38 |
+
--ensemble_size 5 \
|
| 39 |
+
--save_preds \
|
| 40 |
+
--extra_metrics mae
|
| 41 |
+
|
scripts/barriers_rgd1.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_barriers_rgd1
|
| 6 |
+
train_path=../data/barriers_rgd1/train.csv
|
| 7 |
+
val_path=../data/barriers_rgd1/val.csv
|
| 8 |
+
test_path=../data/barriers_rgd1/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--reaction \
|
| 24 |
+
--explicit_h
|
| 25 |
+
|
| 26 |
+
#Training with optimized hyperparameters
|
| 27 |
+
python $chemprop_dir/train.py \
|
| 28 |
+
--dataset_type regression \
|
| 29 |
+
--data_path $train_path \
|
| 30 |
+
--separate_val_path $val_path \
|
| 31 |
+
--separate_test_path $test_path \
|
| 32 |
+
--epochs 50 \
|
| 33 |
+
--aggregation norm \
|
| 34 |
+
--config_path $results_dir/config.json \
|
| 35 |
+
--save_dir $results_dir \
|
| 36 |
+
--reaction \
|
| 37 |
+
--explicit_h \
|
| 38 |
+
--ensemble_size 5 \
|
| 39 |
+
--save_preds \
|
| 40 |
+
--extra_metrics mae
|
| 41 |
+
|
scripts/barriers_sn2.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_barriers_sn2
|
| 6 |
+
train_path=../data/barriers_sn2/train.csv
|
| 7 |
+
val_path=../data/barriers_sn2/val.csv
|
| 8 |
+
test_path=../data/barriers_sn2/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 100 \
|
| 17 |
+
--epochs 200 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout max_lr final_lr init_lr batch_size warmup_epochs \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--reaction \
|
| 24 |
+
--explicit_h
|
| 25 |
+
|
| 26 |
+
#Training with optimized hyperparameters
|
| 27 |
+
python $chemprop_dir/train.py \
|
| 28 |
+
--dataset_type regression \
|
| 29 |
+
--data_path $train_path \
|
| 30 |
+
--separate_val_path $val_path \
|
| 31 |
+
--separate_test_path $test_path \
|
| 32 |
+
--epochs 200 \
|
| 33 |
+
--aggregation norm \
|
| 34 |
+
--config_path $results_dir/config.json \
|
| 35 |
+
--save_dir $results_dir \
|
| 36 |
+
--reaction \
|
| 37 |
+
--explicit_h \
|
| 38 |
+
--ensemble_size 5 \
|
| 39 |
+
--save_preds \
|
| 40 |
+
--extra_metrics mae
|
| 41 |
+
|
scripts/bde.sh
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_bde
|
| 6 |
+
train_path=../data/bde/train.csv
|
| 7 |
+
val_path=../data/bde/val.csv
|
| 8 |
+
test_path=../data/bde/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--adding_h \
|
| 24 |
+
--is_atom_bond_targets \
|
| 25 |
+
--no_shared_atom_bond_ffn \
|
| 26 |
+
--no_adding_bond_types
|
| 27 |
+
|
| 28 |
+
#Training with optimized hyperparameters
|
| 29 |
+
python $chemprop_dir/train.py \
|
| 30 |
+
--dataset_type regression \
|
| 31 |
+
--data_path $train_path \
|
| 32 |
+
--separate_val_path $val_path \
|
| 33 |
+
--separate_test_path $test_path \
|
| 34 |
+
--epochs 50 \
|
| 35 |
+
--aggregation norm \
|
| 36 |
+
--config_path $results_dir/config.json \
|
| 37 |
+
--save_dir $results_dir \
|
| 38 |
+
--adding_h \
|
| 39 |
+
--is_atom_bond_targets \
|
| 40 |
+
--no_shared_atom_bond_ffn \
|
| 41 |
+
--no_adding_bond_types \
|
| 42 |
+
--ensemble_size 5 \
|
| 43 |
+
--save_preds \
|
| 44 |
+
--extra_metrics mae
|
| 45 |
+
|
scripts/bde_charges.sh
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_bde_charges
|
| 6 |
+
train_path=../data/bde_charges/train.csv
|
| 7 |
+
val_path=../data/bde_charges/val.csv
|
| 8 |
+
test_path=../data/bde_charges/test.csv
|
| 9 |
+
train_constraints_path=../data/bde_charges/train_constraints.csv
|
| 10 |
+
val_constraints_path=../data/bde_charges/val_constraints.csv
|
| 11 |
+
test_constraints_path=../data/bde_charges/test_constraints.csv
|
| 12 |
+
|
| 13 |
+
#Hyperparameter optimization
|
| 14 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 15 |
+
--dataset_type regression \
|
| 16 |
+
--data_path $train_path \
|
| 17 |
+
--separate_val_path $val_path \
|
| 18 |
+
--separate_test_path $val_path \
|
| 19 |
+
--constraints_path $train_constraints_path \
|
| 20 |
+
--separate_val_constraints_path $val_constraints_path \
|
| 21 |
+
--separate_test_constraints_path $val_constraints_path \
|
| 22 |
+
--num_iters 30 \
|
| 23 |
+
--epochs 50 \
|
| 24 |
+
--aggregation norm \
|
| 25 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 26 |
+
--config_save_path $results_dir/config.json \
|
| 27 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 28 |
+
--log_dir $results_dir \
|
| 29 |
+
--adding_h \
|
| 30 |
+
--is_atom_bond_targets \
|
| 31 |
+
--no_shared_atom_bond_ffn \
|
| 32 |
+
--no_adding_bond_types
|
| 33 |
+
|
| 34 |
+
#Training with optimized hyperparameters
|
| 35 |
+
python $chemprop_dir/train.py \
|
| 36 |
+
--dataset_type regression \
|
| 37 |
+
--data_path $train_path \
|
| 38 |
+
--separate_val_path $val_path \
|
| 39 |
+
--separate_test_path $test_path \
|
| 40 |
+
--constraints_path $train_constraints_path \
|
| 41 |
+
--separate_val_constraints_path $val_constraints_path \
|
| 42 |
+
--separate_test_constraints_path $test_constraints_path \
|
| 43 |
+
--epochs 50 \
|
| 44 |
+
--aggregation norm \
|
| 45 |
+
--config_path $results_dir/config.json \
|
| 46 |
+
--save_dir $results_dir \
|
| 47 |
+
--adding_h \
|
| 48 |
+
--is_atom_bond_targets \
|
| 49 |
+
--no_shared_atom_bond_ffn \
|
| 50 |
+
--no_adding_bond_types \
|
| 51 |
+
--ensemble_size 5 \
|
| 52 |
+
--save_preds \
|
| 53 |
+
--extra_metrics mae \
|
| 54 |
+
--show_individual_scores
|
scripts/charges_eps_4.sh
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_charges_eps_4
|
| 6 |
+
train_path=../data/charges_eps_4/train.csv
|
| 7 |
+
val_path=../data/charges_eps_4/val.csv
|
| 8 |
+
test_path=../data/charges_eps_4/test.csv
|
| 9 |
+
train_constraints_path=../data/charges_eps_4/train_constraints.csv
|
| 10 |
+
val_constraints_path=../data/charges_eps_4/val_constraints.csv
|
| 11 |
+
test_constraints_path=../data/charges_eps_4/test_constraints.csv
|
| 12 |
+
|
| 13 |
+
external_test_path=../data/charges_eps_4/external_test_set.csv
|
| 14 |
+
external_test_constraints_path=../data/charges_eps_4/external_test_set_constraints.csv
|
| 15 |
+
|
| 16 |
+
#Hyperparameter optimization
|
| 17 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 18 |
+
--dataset_type regression \
|
| 19 |
+
--data_path $train_path \
|
| 20 |
+
--separate_val_path $val_path \
|
| 21 |
+
--separate_test_path $val_path \
|
| 22 |
+
--constraints_path $train_constraints_path \
|
| 23 |
+
--separate_val_constraints_path $val_constraints_path \
|
| 24 |
+
--separate_test_constraints_path $val_constraints_path \
|
| 25 |
+
--num_iters 30 \
|
| 26 |
+
--epochs 50 \
|
| 27 |
+
--aggregation norm \
|
| 28 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 29 |
+
--config_save_path $results_dir/config.json \
|
| 30 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 31 |
+
--log_dir $results_dir \
|
| 32 |
+
--adding_h \
|
| 33 |
+
--is_atom_bond_targets \
|
| 34 |
+
--no_shared_atom_bond_ffn \
|
| 35 |
+
--no_adding_bond_types
|
| 36 |
+
|
| 37 |
+
#Training with optimized hyperparameters
|
| 38 |
+
python $chemprop_dir/train.py \
|
| 39 |
+
--dataset_type regression \
|
| 40 |
+
--data_path $train_path \
|
| 41 |
+
--separate_val_path $val_path \
|
| 42 |
+
--separate_test_path $test_path \
|
| 43 |
+
--constraints_path $train_constraints_path \
|
| 44 |
+
--separate_val_constraints_path $val_constraints_path \
|
| 45 |
+
--separate_test_constraints_path $test_constraints_path \
|
| 46 |
+
--epochs 50 \
|
| 47 |
+
--aggregation norm \
|
| 48 |
+
--config_path $results_dir/config.json \
|
| 49 |
+
--save_dir $results_dir \
|
| 50 |
+
--adding_h \
|
| 51 |
+
--is_atom_bond_targets \
|
| 52 |
+
--no_shared_atom_bond_ffn \
|
| 53 |
+
--no_adding_bond_types \
|
| 54 |
+
--ensemble_size 5 \
|
| 55 |
+
--save_preds \
|
| 56 |
+
--extra_metrics mae
|
| 57 |
+
|
| 58 |
+
#Predict on external test set
|
| 59 |
+
python $chemprop_dir/predict.py \
|
| 60 |
+
--test_path $external_test_path \
|
| 61 |
+
--constraints_path $external_test_constraints_path \
|
| 62 |
+
--preds_path $results_dir/preds_external_test.csv \
|
| 63 |
+
--checkpoint_dir $results_dir
|
scripts/charges_eps_78.sh
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_charges_eps_78
|
| 6 |
+
train_path=../data/charges_eps_78/train.csv
|
| 7 |
+
val_path=../data/charges_eps_78/val.csv
|
| 8 |
+
test_path=../data/charges_eps_78/test.csv
|
| 9 |
+
train_constraints_path=../data/charges_eps_78/train_constraints.csv
|
| 10 |
+
val_constraints_path=../data/charges_eps_78/val_constraints.csv
|
| 11 |
+
test_constraints_path=../data/charges_eps_78/test_constraints.csv
|
| 12 |
+
|
| 13 |
+
external_test_path=../data/charges_eps_78/external_test_set.csv
|
| 14 |
+
external_test_constraints_path=../data/charges_eps_78/external_test_set_constraints.csv
|
| 15 |
+
|
| 16 |
+
#Hyperparameter optimization
|
| 17 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 18 |
+
--dataset_type regression \
|
| 19 |
+
--data_path $train_path \
|
| 20 |
+
--separate_val_path $val_path \
|
| 21 |
+
--separate_test_path $val_path \
|
| 22 |
+
--constraints_path $train_constraints_path \
|
| 23 |
+
--separate_val_constraints_path $val_constraints_path \
|
| 24 |
+
--separate_test_constraints_path $val_constraints_path \
|
| 25 |
+
--num_iters 30 \
|
| 26 |
+
--epochs 50 \
|
| 27 |
+
--aggregation norm \
|
| 28 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 29 |
+
--config_save_path $results_dir/config.json \
|
| 30 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 31 |
+
--log_dir $results_dir \
|
| 32 |
+
--adding_h \
|
| 33 |
+
--is_atom_bond_targets \
|
| 34 |
+
--no_shared_atom_bond_ffn \
|
| 35 |
+
--no_adding_bond_types
|
| 36 |
+
|
| 37 |
+
#Training with optimized hyperparameters
|
| 38 |
+
python $chemprop_dir/train.py \
|
| 39 |
+
--dataset_type regression \
|
| 40 |
+
--data_path $train_path \
|
| 41 |
+
--separate_val_path $val_path \
|
| 42 |
+
--separate_test_path $test_path \
|
| 43 |
+
--constraints_path $train_constraints_path \
|
| 44 |
+
--separate_val_constraints_path $val_constraints_path \
|
| 45 |
+
--separate_test_constraints_path $test_constraints_path \
|
| 46 |
+
--epochs 50 \
|
| 47 |
+
--aggregation norm \
|
| 48 |
+
--config_path $results_dir/config.json \
|
| 49 |
+
--save_dir $results_dir \
|
| 50 |
+
--adding_h \
|
| 51 |
+
--is_atom_bond_targets \
|
| 52 |
+
--no_shared_atom_bond_ffn \
|
| 53 |
+
--no_adding_bond_types \
|
| 54 |
+
--ensemble_size 5 \
|
| 55 |
+
--save_preds \
|
| 56 |
+
--extra_metrics mae
|
| 57 |
+
|
| 58 |
+
#Predict on external test set
|
| 59 |
+
python $chemprop_dir/predict.py \
|
| 60 |
+
--test_path $external_test_path \
|
| 61 |
+
--constraints_path $external_test_constraints_path \
|
| 62 |
+
--preds_path $results_dir/preds_external_test.csv \
|
| 63 |
+
--checkpoint_dir $results_dir
|
scripts/hiv.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_hiv
|
| 6 |
+
train_path=../data/hiv/train.csv
|
| 7 |
+
val_path=../data/hiv/val.csv
|
| 8 |
+
test_path=../data/hiv/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type classification \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir
|
| 23 |
+
|
| 24 |
+
#Training with optimized hyperparameters
|
| 25 |
+
python $chemprop_dir/train.py \
|
| 26 |
+
--dataset_type classification \
|
| 27 |
+
--data_path $train_path \
|
| 28 |
+
--separate_val_path $val_path \
|
| 29 |
+
--separate_test_path $test_path \
|
| 30 |
+
--epochs 50 \
|
| 31 |
+
--aggregation norm \
|
| 32 |
+
--config_path $results_dir/config.json \
|
| 33 |
+
--save_dir $results_dir \
|
| 34 |
+
--ensemble_size 5 \
|
| 35 |
+
--save_preds \
|
| 36 |
+
--extra_metrics prc-auc
|
| 37 |
+
|
scripts/ir.sh
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_ir
|
| 6 |
+
train_path=../data/ir/train.csv
|
| 7 |
+
val_path=../data/ir/val.csv
|
| 8 |
+
test_path=../data/ir/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type spectra \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 100 \
|
| 17 |
+
--epochs 200 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout max_lr final_lr init_lr batch_size warmup_epochs \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir
|
| 23 |
+
|
| 24 |
+
#Training with optimized hyperparameters
|
| 25 |
+
python $chemprop_dir/train.py \
|
| 26 |
+
--dataset_type spectra \
|
| 27 |
+
--data_path $train_path \
|
| 28 |
+
--separate_val_path $val_path \
|
| 29 |
+
--separate_test_path $test_path \
|
| 30 |
+
--epochs 200 \
|
| 31 |
+
--aggregation norm \
|
| 32 |
+
--config_path $results_dir/config.json \
|
| 33 |
+
--save_dir $results_dir \
|
| 34 |
+
--ensemble_size 5 \
|
| 35 |
+
--save_preds
|
scripts/multi_molecule.sh
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_multi_molecule
|
| 6 |
+
train_path=../data/multi_molecule/train.csv
|
| 7 |
+
val_path=../data/multi_molecule/val.csv
|
| 8 |
+
test_path=../data/multi_molecule/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--number_of_molecules 2
|
| 24 |
+
|
| 25 |
+
#Training with optimized hyperparameters
|
| 26 |
+
python $chemprop_dir/train.py \
|
| 27 |
+
--dataset_type regression \
|
| 28 |
+
--data_path $train_path \
|
| 29 |
+
--separate_val_path $val_path \
|
| 30 |
+
--separate_test_path $test_path \
|
| 31 |
+
--epochs 50 \
|
| 32 |
+
--aggregation norm \
|
| 33 |
+
--config_path $results_dir/config.json \
|
| 34 |
+
--save_dir $results_dir \
|
| 35 |
+
--number_of_molecules 2 \
|
| 36 |
+
--ensemble_size 5 \
|
| 37 |
+
--save_preds \
|
| 38 |
+
--extra_metrics mae r2
|
| 39 |
+
|
scripts/pcba_random.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_pcba_random
|
| 6 |
+
train_path=../data/pcba_random/train.csv
|
| 7 |
+
val_path=../data/pcba_random/val.csv
|
| 8 |
+
test_path=../data/pcba_random/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type classification \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir
|
| 23 |
+
|
| 24 |
+
#Training with optimized hyperparameters
|
| 25 |
+
python $chemprop_dir/train.py \
|
| 26 |
+
--dataset_type classification \
|
| 27 |
+
--data_path $train_path \
|
| 28 |
+
--separate_val_path $val_path \
|
| 29 |
+
--separate_test_path $test_path \
|
| 30 |
+
--epochs 50 \
|
| 31 |
+
--aggregation norm \
|
| 32 |
+
--config_path $results_dir/config.json \
|
| 33 |
+
--save_dir $results_dir \
|
| 34 |
+
--ensemble_size 5 \
|
| 35 |
+
--save_preds \
|
| 36 |
+
--extra_metrics prc-auc
|
| 37 |
+
|
scripts/pcba_random_nans.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_pcba_random_nans
|
| 6 |
+
train_path=../data/pcba_random_nans/train.csv
|
| 7 |
+
val_path=../data/pcba_random_nans/val.csv
|
| 8 |
+
test_path=../data/pcba_random_nans/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type classification \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir
|
| 23 |
+
|
| 24 |
+
#Training with optimized hyperparameters
|
| 25 |
+
python $chemprop_dir/train.py \
|
| 26 |
+
--dataset_type classification \
|
| 27 |
+
--data_path $train_path \
|
| 28 |
+
--separate_val_path $val_path \
|
| 29 |
+
--separate_test_path $test_path \
|
| 30 |
+
--epochs 50 \
|
| 31 |
+
--aggregation norm \
|
| 32 |
+
--config_path $results_dir/config.json \
|
| 33 |
+
--save_dir $results_dir \
|
| 34 |
+
--ensemble_size 5 \
|
| 35 |
+
--save_preds \
|
| 36 |
+
--extra_metrics prc-auc
|
| 37 |
+
|
scripts/pcba_scaffold.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_pcba_scaffold
|
| 6 |
+
train_path=../data/pcba_scaffold/train.csv
|
| 7 |
+
val_path=../data/pcba_scaffold/val.csv
|
| 8 |
+
test_path=../data/pcba_scaffold/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type classification \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir
|
| 23 |
+
|
| 24 |
+
#Training with optimized hyperparameters
|
| 25 |
+
python $chemprop_dir/train.py \
|
| 26 |
+
--dataset_type classification \
|
| 27 |
+
--data_path $train_path \
|
| 28 |
+
--separate_val_path $val_path \
|
| 29 |
+
--separate_test_path $test_path \
|
| 30 |
+
--epochs 50 \
|
| 31 |
+
--aggregation norm \
|
| 32 |
+
--config_path $results_dir/config.json \
|
| 33 |
+
--save_dir $results_dir \
|
| 34 |
+
--ensemble_size 5 \
|
| 35 |
+
--save_preds \
|
| 36 |
+
--extra_metrics prc-auc
|
| 37 |
+
|
scripts/pcqm4mv2.sh
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_pcqm4mv2
|
| 6 |
+
train_path=../data/pcqm4mv2/train.csv
|
| 7 |
+
val_path=../data/pcqm4mv2/val.csv
|
| 8 |
+
test_path=../data/pcqm4mv2/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir
|
| 23 |
+
|
| 24 |
+
#Training with optimized hyperparameters
|
| 25 |
+
python $chemprop_dir/train.py \
|
| 26 |
+
--dataset_type regression \
|
| 27 |
+
--data_path $train_path \
|
| 28 |
+
--separate_val_path $val_path \
|
| 29 |
+
--separate_test_path $test_path \
|
| 30 |
+
--epochs 50 \
|
| 31 |
+
--aggregation norm \
|
| 32 |
+
--config_path $results_dir/config.json \
|
| 33 |
+
--save_dir $results_dir \
|
| 34 |
+
--ensemble_size 5 \
|
| 35 |
+
--save_preds \
|
| 36 |
+
--extra_metrics mae
|
scripts/qm9_gap.sh
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_qm9_gap
|
| 6 |
+
train_path=../data/qm9/train.csv
|
| 7 |
+
val_path=../data/qm9/val.csv
|
| 8 |
+
test_path=../data/qm9/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--target_columns gap
|
| 24 |
+
|
| 25 |
+
#Training with optimized hyperparameters
|
| 26 |
+
python $chemprop_dir/train.py \
|
| 27 |
+
--dataset_type regression \
|
| 28 |
+
--data_path $train_path \
|
| 29 |
+
--separate_val_path $val_path \
|
| 30 |
+
--separate_test_path $test_path \
|
| 31 |
+
--epochs 50 \
|
| 32 |
+
--aggregation norm \
|
| 33 |
+
--config_path $results_dir/config.json \
|
| 34 |
+
--save_dir $results_dir \
|
| 35 |
+
--ensemble_size 5 \
|
| 36 |
+
--save_preds \
|
| 37 |
+
--extra_metrics mae \
|
| 38 |
+
--show_individual_scores \
|
| 39 |
+
--target_columns gap
|
scripts/qm9_multitask.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_qm9_multitask
|
| 6 |
+
train_path=../data/qm9/train.csv
|
| 7 |
+
val_path=../data/qm9/val.csv
|
| 8 |
+
test_path=../data/qm9/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir
|
| 23 |
+
|
| 24 |
+
#Training with optimized hyperparameters
|
| 25 |
+
python $chemprop_dir/train.py \
|
| 26 |
+
--dataset_type regression \
|
| 27 |
+
--data_path $train_path \
|
| 28 |
+
--separate_val_path $val_path \
|
| 29 |
+
--separate_test_path $test_path \
|
| 30 |
+
--epochs 50 \
|
| 31 |
+
--aggregation norm \
|
| 32 |
+
--config_path $results_dir/config.json \
|
| 33 |
+
--save_dir $results_dir \
|
| 34 |
+
--ensemble_size 5 \
|
| 35 |
+
--save_preds \
|
| 36 |
+
--extra_metrics mae \
|
| 37 |
+
--show_individual_scores
|
scripts/qm9_u0.sh
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_qm9_u0
|
| 6 |
+
train_path=../data/qm9/train.csv
|
| 7 |
+
val_path=../data/qm9/val.csv
|
| 8 |
+
test_path=../data/qm9/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--target_columns u0_atom
|
| 24 |
+
|
| 25 |
+
#Training with optimized hyperparameters
|
| 26 |
+
python $chemprop_dir/train.py \
|
| 27 |
+
--dataset_type regression \
|
| 28 |
+
--data_path $train_path \
|
| 29 |
+
--separate_val_path $val_path \
|
| 30 |
+
--separate_test_path $test_path \
|
| 31 |
+
--epochs 50 \
|
| 32 |
+
--aggregation norm \
|
| 33 |
+
--config_path $results_dir/config.json \
|
| 34 |
+
--save_dir $results_dir \
|
| 35 |
+
--ensemble_size 5 \
|
| 36 |
+
--save_preds \
|
| 37 |
+
--extra_metrics mae \
|
| 38 |
+
--show_individual_scores \
|
| 39 |
+
--target_columns u0_atom
|
scripts/sampl.sh
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_sampl
|
| 6 |
+
results_dir2=results_sampl_production
|
| 7 |
+
train_path=../data/logP/train.csv
|
| 8 |
+
val_path=../data/logP/val.csv
|
| 9 |
+
test_path=../data/logP/test.csv
|
| 10 |
+
path=../data/logP/logP_without_overlap.csv
|
| 11 |
+
|
| 12 |
+
#Hyperparameter optimization
|
| 13 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 14 |
+
--dataset_type regression \
|
| 15 |
+
--data_path $train_path \
|
| 16 |
+
--separate_val_path $val_path \
|
| 17 |
+
--separate_test_path $val_path \
|
| 18 |
+
--num_iters 30 \
|
| 19 |
+
--epochs 50 \
|
| 20 |
+
--aggregation norm \
|
| 21 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 22 |
+
--config_save_path $results_dir/config.json \
|
| 23 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 24 |
+
--log_dir $results_dir
|
| 25 |
+
|
| 26 |
+
#Training with optimized hyperparameters
|
| 27 |
+
python $chemprop_dir/train.py \
|
| 28 |
+
--dataset_type regression \
|
| 29 |
+
--data_path $train_path \
|
| 30 |
+
--separate_val_path $val_path \
|
| 31 |
+
--separate_test_path $test_path \
|
| 32 |
+
--epochs 50 \
|
| 33 |
+
--aggregation norm \
|
| 34 |
+
--config_path $results_dir/config.json \
|
| 35 |
+
--save_dir $results_dir \
|
| 36 |
+
--ensemble_size 5 \
|
| 37 |
+
--save_preds \
|
| 38 |
+
--extra_metrics mae
|
| 39 |
+
|
| 40 |
+
#Train production model
|
| 41 |
+
python $chemprop_dir/train.py \
|
| 42 |
+
--dataset_type regression \
|
| 43 |
+
--data_path $path \
|
| 44 |
+
--separate_val_path $path \
|
| 45 |
+
--separate_test_path $path \
|
| 46 |
+
--epochs 40 \
|
| 47 |
+
--aggregation norm \
|
| 48 |
+
--config_path $results_dir/config.json \
|
| 49 |
+
--save_dir $results_dir2 \
|
| 50 |
+
--ensemble_size 5
|
| 51 |
+
|
| 52 |
+
#Predict on Sample 6
|
| 53 |
+
python $chemprop_dir/predict.py \
|
| 54 |
+
--test_path "../data/logP/sampl6_experimental.csv" \
|
| 55 |
+
--preds_path $results_dir2/pred_SAMPL6.csv \
|
| 56 |
+
--checkpoint_dir $results_dir2 \
|
| 57 |
+
--smiles_column "Isomeric SMILES"
|
| 58 |
+
|
| 59 |
+
echo SAMPL6 >> $results_dir2/sampl.csv
|
| 60 |
+
python -c 'import pandas as pd; from sklearn import metrics; print("rmse", metrics.mean_squared_error(pd.read_csv("results_sampl_production/pred_SAMPL6.csv")["logP"],pd.read_csv("../data/logP/sampl6_experimental.csv")["logP mean"],squared=False))' >> $results_dir2/sampl.csv
|
| 61 |
+
|
| 62 |
+
#Predict on Sample 7
|
| 63 |
+
python $chemprop_dir/predict.py \
|
| 64 |
+
--test_path "../data/logP/sampl7_experimental.csv" \
|
| 65 |
+
--preds_path $results_dir2/pred_SAMPL7.csv \
|
| 66 |
+
--checkpoint_dir $results_dir2 \
|
| 67 |
+
--smiles_column "Isomeric SMILES"
|
| 68 |
+
|
| 69 |
+
echo SAMPL7 >> $results_dir2/sampl.csv
|
| 70 |
+
python -c 'import pandas as pd; from sklearn import metrics; print("rmse", metrics.mean_squared_error(pd.read_csv("results_sampl_production/pred_SAMPL7.csv")["logP"],pd.read_csv("../data/logP/sampl7_experimental.csv")["logP mean"],squared=False))' >> $results_dir2/sampl.csv
|
| 71 |
+
|
| 72 |
+
#Predict on Sample 9
|
| 73 |
+
python $chemprop_dir/predict.py \
|
| 74 |
+
--test_path "../data/logP/sampl9_experimental.csv" \
|
| 75 |
+
--preds_path $results_dir2/pred_SAMPL9.csv \
|
| 76 |
+
--checkpoint_dir $results_dir2 \
|
| 77 |
+
--smiles_column smiles
|
| 78 |
+
|
| 79 |
+
echo SAMPL9 >> $results_dir2/sampl.csv
|
| 80 |
+
python -c 'import pandas as pd; from sklearn import metrics; print("rmse", metrics.mean_squared_error(pd.read_csv("results_sampl_production/pred_SAMPL9.csv")["logP"],pd.read_csv("../data/logP/sampl9_experimental.csv")["new_logPexp_reviewed"],squared=False))' >> $results_dir2/sampl.csv
|
| 81 |
+
|
| 82 |
+
echo "Saved results to" $results_dir2"/sampl.csv"
|
| 83 |
+
cat >> $results_dir2/sampl.csv
|
scripts/timing.sh
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
save_dir=results_timing
|
| 6 |
+
data_dir=../data/timing
|
| 7 |
+
|
| 8 |
+
#100k
|
| 9 |
+
python $chemprop_dir/train.py \
|
| 10 |
+
--dataset_type regression \
|
| 11 |
+
--data_path $data_dir/qm9_100k.csv \
|
| 12 |
+
--save_dir $save_dir/qm9_100k \
|
| 13 |
+
--aggregation norm \
|
| 14 |
+
--depth 4 \
|
| 15 |
+
--ffn_num_layers 2 \
|
| 16 |
+
--hidden_size 1000 \
|
| 17 |
+
--ffn_hidden_size 1000 \
|
| 18 |
+
--epochs 50
|
| 19 |
+
|
| 20 |
+
python $chemprop_dir/predict.py \
|
| 21 |
+
--test_path $data_dir/qm9_100k.csv \
|
| 22 |
+
--preds_path $save_dir/qm9_100k/preds/preds.csv \
|
| 23 |
+
--checkpoint_dir $save_dir/qm9_100k
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
#10k
|
| 27 |
+
python $chemprop_dir/train.py \
|
| 28 |
+
--dataset_type regression \
|
| 29 |
+
--data_path $data_dir/qm9_10k.csv \
|
| 30 |
+
--save_dir $save_dir/qm9_10k \
|
| 31 |
+
--aggregation norm \
|
| 32 |
+
--depth 4 \
|
| 33 |
+
--ffn_num_layers 2 \
|
| 34 |
+
--hidden_size 1000 \
|
| 35 |
+
--ffn_hidden_size 1000 \
|
| 36 |
+
--epochs 50
|
| 37 |
+
|
| 38 |
+
python $chemprop_dir/predict.py \
|
| 39 |
+
--test_path $data_dir/qm9_10k.csv \
|
| 40 |
+
--preds_path $save_dir/qm9_10k/preds/preds.csv \
|
| 41 |
+
--checkpoint_dir $save_dir/qm9_10k
|
| 42 |
+
|
| 43 |
+
#1k
|
| 44 |
+
python $chemprop_dir/train.py \
|
| 45 |
+
--dataset_type regression \
|
| 46 |
+
--data_path $data_dir/qm9_1k.csv \
|
| 47 |
+
--save_dir $save_dir/qm9_1k \
|
| 48 |
+
--aggregation norm \
|
| 49 |
+
--depth 4 \
|
| 50 |
+
--ffn_num_layers 2 \
|
| 51 |
+
--hidden_size 1000 \
|
| 52 |
+
--ffn_hidden_size 1000 \
|
| 53 |
+
--epochs 50
|
| 54 |
+
|
| 55 |
+
python $chemprop_dir/predict.py \
|
| 56 |
+
--test_path $data_dir/qm9_1k.csv \
|
| 57 |
+
--preds_path $save_dir/qm9_1k/preds/preds.csv \
|
| 58 |
+
--checkpoint_dir $save_dir/qm9_1k
|
scripts/uncertainty_ensemble.sh
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_uncertainty_ensemble
|
| 6 |
+
train_path=../data/uncertainty/train.csv
|
| 7 |
+
val_path=../data/uncertainty/val.csv
|
| 8 |
+
test_path=../data/uncertainty/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir
|
| 23 |
+
|
| 24 |
+
#Training with optimized hyperparameters
|
| 25 |
+
python $chemprop_dir/train.py \
|
| 26 |
+
--dataset_type regression \
|
| 27 |
+
--data_path $train_path \
|
| 28 |
+
--separate_val_path $val_path \
|
| 29 |
+
--separate_test_path $test_path \
|
| 30 |
+
--epochs 50 \
|
| 31 |
+
--aggregation norm \
|
| 32 |
+
--config_path $results_dir/config.json \
|
| 33 |
+
--save_dir $results_dir \
|
| 34 |
+
--ensemble_size 5
|
| 35 |
+
|
| 36 |
+
#Predict, analyze uncertainty
|
| 37 |
+
python $chemprop_dir/predict.py \
|
| 38 |
+
--test_path $test_path \
|
| 39 |
+
--preds_path $results_dir/test_preds_unc_ensemble.csv \
|
| 40 |
+
--checkpoint_dir $results_dir \
|
| 41 |
+
--uncertainty_method ensemble \
|
| 42 |
+
--calibration_method zscaling \
|
| 43 |
+
--calibration_path $val_path \
|
| 44 |
+
--regression_calibrator_metric stdev \
|
| 45 |
+
--calibration_interval_percentile 95 \
|
| 46 |
+
--evaluation_methods nll spearman ence miscalibration_area \
|
| 47 |
+
--evaluation_scores_path $results_dir/unc_eval_scores_ensemble.csv
|
| 48 |
+
|
| 49 |
+
cat $results_dir/unc_eval_scores_ensemble.csv
|
scripts/uncertainty_evidential.sh
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_uncertainty_evidential
|
| 6 |
+
train_path=../data/uncertainty/train.csv
|
| 7 |
+
val_path=../data/uncertainty/val.csv
|
| 8 |
+
test_path=../data/uncertainty/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--loss_function evidential
|
| 24 |
+
|
| 25 |
+
#Training with optimized hyperparameters
|
| 26 |
+
python $chemprop_dir/train.py \
|
| 27 |
+
--dataset_type regression \
|
| 28 |
+
--data_path $train_path \
|
| 29 |
+
--separate_val_path $val_path \
|
| 30 |
+
--separate_test_path $test_path \
|
| 31 |
+
--epochs 50 \
|
| 32 |
+
--aggregation norm \
|
| 33 |
+
--config_path $results_dir/config.json \
|
| 34 |
+
--save_dir $results_dir \
|
| 35 |
+
--loss_function evidential
|
| 36 |
+
|
| 37 |
+
#Predict, analyze uncertainty
|
| 38 |
+
python $chemprop_dir/predict.py \
|
| 39 |
+
--test_path $test_path \
|
| 40 |
+
--preds_path $results_dir/test_preds_unc_evidential.csv \
|
| 41 |
+
--checkpoint_dir $results_dir \
|
| 42 |
+
--uncertainty_method evidential_total \
|
| 43 |
+
--calibration_method zscaling \
|
| 44 |
+
--calibration_path $val_path \
|
| 45 |
+
--regression_calibrator_metric stdev \
|
| 46 |
+
--calibration_interval_percentile 95 \
|
| 47 |
+
--evaluation_methods nll spearman ence miscalibration_area \
|
| 48 |
+
--evaluation_scores_path $results_dir/unc_eval_scores_evidential.csv
|
| 49 |
+
|
| 50 |
+
cat $results_dir/unc_eval_scores_evidential.csv
|
scripts/uncertainty_mve.sh
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
chemprop_dir=../../../chemprop # location of chemprop directory, CHANGE ME
|
| 4 |
+
|
| 5 |
+
results_dir=results_uncertainty_mve
|
| 6 |
+
train_path=../data/uncertainty/train.csv
|
| 7 |
+
val_path=../data/uncertainty/val.csv
|
| 8 |
+
test_path=../data/uncertainty/test.csv
|
| 9 |
+
|
| 10 |
+
#Hyperparameter optimization
|
| 11 |
+
python $chemprop_dir/hyperparameter_optimization.py \
|
| 12 |
+
--dataset_type regression \
|
| 13 |
+
--data_path $train_path \
|
| 14 |
+
--separate_val_path $val_path \
|
| 15 |
+
--separate_test_path $val_path \
|
| 16 |
+
--num_iters 30 \
|
| 17 |
+
--epochs 50 \
|
| 18 |
+
--aggregation norm \
|
| 19 |
+
--search_parameter_keywords depth ffn_num_layers hidden_size ffn_hidden_size dropout \
|
| 20 |
+
--config_save_path $results_dir/config.json \
|
| 21 |
+
--hyperopt_checkpoint_dir $results_dir \
|
| 22 |
+
--log_dir $results_dir \
|
| 23 |
+
--loss_function mve
|
| 24 |
+
|
| 25 |
+
#Training with optimized hyperparameters
|
| 26 |
+
python $chemprop_dir/train.py \
|
| 27 |
+
--dataset_type regression \
|
| 28 |
+
--data_path $train_path \
|
| 29 |
+
--separate_val_path $val_path \
|
| 30 |
+
--separate_test_path $test_path \
|
| 31 |
+
--epochs 50 \
|
| 32 |
+
--aggregation norm \
|
| 33 |
+
--config_path $results_dir/config.json \
|
| 34 |
+
--save_dir $results_dir \
|
| 35 |
+
--loss_function mve
|
| 36 |
+
|
| 37 |
+
#Predict, analyze uncertainty
|
| 38 |
+
python $chemprop_dir/predict.py \
|
| 39 |
+
--test_path $test_path \
|
| 40 |
+
--preds_path $results_dir/test_preds_unc_mve.csv \
|
| 41 |
+
--checkpoint_dir $results_dir \
|
| 42 |
+
--uncertainty_method mve \
|
| 43 |
+
--calibration_method zscaling \
|
| 44 |
+
--calibration_path $val_path \
|
| 45 |
+
--regression_calibrator_metric stdev \
|
| 46 |
+
--calibration_interval_percentile 95 \
|
| 47 |
+
--evaluation_methods nll spearman ence miscalibration_area \
|
| 48 |
+
--evaluation_scores_path $results_dir/unc_eval_scores_mve.csv
|
| 49 |
+
|
| 50 |
+
cat $results_dir/unc_eval_scores_mve.csv
|