-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_hyperparameter_search_sim.sh
executable file
·70 lines (55 loc) · 1.83 KB
/
run_hyperparameter_search_sim.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
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
models=( FlowGRUModel GRUModel FlowLSTMModel LSTMModel )
hidden=( 2 4 8 16 24 32 48 64 96 128 256 512 1024 )
for h in "${hidden[@]}"
do
for m in "${models[@]}"
do
echo "hidden dim $h\n"
echo "$m\n"
python train.py --model $m --max_epochs 100 --hidden_dim_t $h --hidden_dim_i 2 --logfolder sim/hyperparameters/hidden/h${h} --data simulation_val --nfolds 1
done
done
models=( ODEGRUModel DecayGRUModel ODELSTMModel )
hidden=( 2 4 8 16 24 32 )
for h in "${hidden[@]}"
do
for m in "${models[@]}"
do
echo "hidden dim $h\n"
echo "$m\n"
python train.py --model $m --max_epochs 100 --hidden_dim_t $h --hidden_dim_i 2 --logfolder sim/hyperparameters/hidden/h${h} --data simulation_val --nfolds 1
done
done
mixing=( 0.00001 0.0001 0.001 0.01 0.1 1.0 10.0 )
models=( FlowGRUModel FlowLSTMModel )
for l in "${mixing[@]}"
do
for m in "${models[@]}"
do
echo "mixing $l\n"
echo "$m\n"
python train.py --model $m --max_epochs 100 --hidden_dim_t 4 --hidden_dim_i 2 --logfolder sim/hyperparameters/mixing/m${l} --data simulation_val --nfolds 1 --update-mixing $l
done
done
error=( 0.0001 0.001 0.01 0.05 0.1 0.5 1.0 2.0 3.0 )
models=( FlowGRUModel FlowLSTMModel )
for e in "${error[@]}"
do
for m in "${models[@]}"
do
echo "error $e\n"
echo "$m\n"
python train.py --model $m --max_epochs 100 --hidden_dim_t 4 --hidden_dim_i 2 --logfolder sim/hyperparameters/error0/e${e} --data simulation_val --nfolds 1 --merror $e
done
done
error=( 0.0001 0.001 0.01 0.05 0.1 0.5 1.0 2.0 3.0 )
for e in "${error[@]}"
do
for m in "${models[@]}"
do
echo "error $e\n"
echo "$m\n"
python train.py --model $m --max_epochs 100 --hidden_dim_t 4 --hidden_dim_i 2 --logfolder sim/hyperparameters/error1/e${e} --data simulation_val_error --nfolds 1 --merror $e
done
done