-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathtesting_msearch_case.sh
32 lines (22 loc) · 1 KB
/
testing_msearch_case.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
#!/usr/bin/env bash
# this file used for generating SMILES with model having been trained with reinforcement learning using multinomial sampling for case
dataset_name=PROTAC
random=random
agent_step=1000
ZINC_step=200000
PROTAC_step=3000
beamsize=32
test_nbest=250
train_type=M
# beam search or multinomial sampling
score_function=PK
case=dBET6
model=Model_Agent_on_${dataset_name}_zinc${ZINC_step}_protac${PROTAC_step}_${random}_${NL}_${train_type}_${score_function}
chooseGpu=1
echo "multinomial search using agent model"
CUDA_VISIBLE_DEVICES=$chooseGpu python translate_ms.py -model checkpoints/${dataset_name}/Agent/${case}/${model}_step_${agent_step}.pt \
-src case/${case}/src-test \
-tgt case/${case}/tgt-test \
-output case/${case}/predictions_ms_${agent_step}_${test_nbest}.txt \
-batch_size 1 -replace_unk -max_length 200 -beam_size $beamsize -verbose -n_best $test_nbest \
-gpu 0 -log_probs -log_file ''