-
Notifications
You must be signed in to change notification settings - Fork 39
/
make_run_prod.sh
39 lines (34 loc) · 1.63 KB
/
make_run_prod.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# methods=('screening' 'molpal' 'graph_ga' 'smiles_ga' 'selfies_ga' \
# 'graph_mcts' 'smiles_lstm_hc' 'selfies_lstm_hc' 'gpbo' 'jt_vae' 'moldqn' \
# 'smiles_vae' 'selfies_vae' 'chembo' 'mars' 'reinvent' 'reinvent_selfies')
methods=('dog_ae' 'dog_gen')
for method in "${methods[@]}"
do
echo "#!/bin/bash
oracle_array=('jnk3' 'gsk3b' 'celecoxib_rediscovery' \\
'troglitazone_rediscovery' \\
'thiothixene_rediscovery' 'albuterol_similarity' 'mestranol_similarity' \\
'isomers_c7h8n2o2' 'isomers_c9h10n2o2pf2cl' 'median1' 'median2' 'osimertinib_mpo' \\
'fexofenadine_mpo' 'ranolazine_mpo' 'perindopril_mpo' 'amlodipine_mpo' \\
'sitagliptin_mpo' 'zaleplon_mpo' 'valsartan_smarts' 'deco_hop' 'scaffold_hop' 'qed' 'drd2')
for oralce in "\${oracle_array[@]}"
do
python -u run.py ${method} --task production --n_runs 1 --n_jobs 8 --wandb offline --max_oracle_calls 10000 --oracles \${oralce}
done" > production_$method.slurm
# if [[ ${method} = 'molpal' ]]
# then
# CUDA_VISIBLE_DEVICES=0 nohup bash production_${method}.sh &> ${method}_prod.out &
# elif [[ $method = 'smiles_lstm_hc' ]]
# then
# CUDA_VISIBLE_DEVICES=1 nohup bash production_${method}.sh &> ${method}_prod.out &
# elif [[ $method = 'selfies_lstm_hc' ]]
# then
# CUDA_VISIBLE_DEVICES=2 nohup bash production_${method}.sh &> ${method}_prod.out &
# elif [[ $method = 'selfies_ga' ]]
# then
# CUDA_VISIBLE_DEVICES=3 nohup bash production_${method}.sh &> ${method}_prod.out &
# else
# CUDA_VISIBLE_DEVICES= nohup bash production_synnet1.sh &> synnet_prod1.out &
# fi
done