-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun1_retrain_cnn1d.sh
60 lines (52 loc) · 1.45 KB
/
run1_retrain_cnn1d.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
DATAFN=3
DATATESTFN=3
GPUID=3
SEEDS=(42 667 128)
LR_META=(0.001)
SUPPORT_SIZE=(0)
for s in ${SEEDS[@]}; do
for lm in ${LR_META[@]}; do
for ss in ${SUPPORT_SIZE[@]}; do
python main.py \
--data_fn ${DATAFN} \
--datatest_fn ${DATATESTFN} \
--support_size ${ss} \
--lr_meta ${lm} \
--seed ${s} \
--gpu_id ${GPUID} \
--modeltype "cnn1d" \
--do_eval
# --do_train \
# --do_eval
done
done
done
SEEDS=(42 667 128)
LR_META=(0.001)
SUPPORT_SIZE=(2 5)
LR_INNER=(0.0001 0.001)
INNER_STEPS=(2)
for s in ${SEEDS[@]}; do
for lm in ${LR_META[@]}; do
for ss in ${SUPPORT_SIZE[@]}; do
for li in ${LR_INNER[@]}; do
for is in ${INNER_STEPS[@]}; do
python main.py \
--data_fn ${DATAFN} \
--datatest_fn ${DATATESTFN} \
--support_size ${ss} \
--inner_steps ${is} \
--lr_meta ${lm} \
--lr_inner ${li} \
--seed ${s} \
--gpu_id ${GPUID} \
--modeltype "cnn1d" \
--do_eval
# --do_train \
# --do_eval
done
done
done
done
done