-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtrain3times_seeds_40p.sh
36 lines (29 loc) · 1.42 KB
/
train3times_seeds_40p.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
#!/bin/bash
while getopts 'm:e:c:t:l:w:' OPT; do
case $OPT in
m) method=$OPTARG;;
e) exp=$OPTARG;;
c) cuda=$OPTARG;;
t) task=$OPTARG;;
l) lr=$OPTARG;;
w) cps_w=$OPTARG;;
esac
done
echo $method
echo $cuda
epoch=300
echo $epoch
labeled_data="labeled_40p"
unlabeled_data="unlabeled_40p"
folder="Task_"${task}"_40p/"
cps="AB"
echo $folder
python code/train_${method}.py --task ${task} --exp ${folder}${method}${exp}/fold1 --seed 0 -g ${cuda} --base_lr ${lr} -w ${cps_w} -ep ${epoch} -sl ${labeled_data} -su ${unlabeled_data} -r
python code/test.py --task ${task} --exp ${folder}${method}${exp}/fold1 -g ${cuda} --cps ${cps}
python code/evaluate_Ntimes.py --task ${task} --exp ${folder}${method}${exp} --folds 1 --cps ${cps}
#python code/train_${method}.py --exp ${folder}${method}${exp}/fold2 --seed 1 -g ${cuda} --base_lr ${lr} -w ${cps_w} -ep ${epoch} -sl ${labeled_data} -su ${unlabeled_data} -r
#python code/test.py --exp ${folder}${method}${exp}/fold2 -g ${cuda} --cps ${cps}
#python code/evaluate_Ntimes.py --exp ${folder}${method}${exp} --folds 2 --cps ${cps}
#python code/train_${method}.py --exp ${folder}${method}${exp}/fold3 --seed 666 -g ${cuda} --base_lr ${lr} -w ${cps_w} -ep ${epoch} -sl ${labeled_data} -su ${unlabeled_data} -r
#python code/test.py --exp ${folder}${method}${exp}/fold3 -g ${cuda} --cps ${cps}
#python code/evaluate_Ntimes.py --exp ${folder}${method}${exp} --cps ${cps}