-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen_models.sh
executable file
·46 lines (38 loc) · 1002 Bytes
/
gen_models.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
#!/bin/bash
DIRS=('is_turnpt')
Ns=(5)
# DEPTHs=(5 10 20)
# L2_LEAF_REGs=(100 200 300 400)
# Learning_rates=(0.5 0.1 0.05)
DEPTHs=(10)
L2_LEAF_REGs=(100000)
Learning_rates=(1)
for direction in "${DIRS[@]}"
do
for depth in "${DEPTHs[@]}"
do
for l2_reg in "${L2_LEAF_REGs[@]}"
do
for learn_rate in "${Learning_rates[@]}"
do
for n in ${Ns[@]}
do
export N=$n
export DIRECTION=$direction
export LEARNING_RATE=$learn_rate
export L2_LEAF_REG=$l2_reg
export DEPTH=$depth
python model.py > models/${N}_${direction}_${depth}_${learn_rate}_${l2_reg}.log 2>&1 &
done
done
done
done
done
wait
for direction in "${DIRS[@]}"
do
for n in ${Ns[@]}
do
tail -1 models/${N}_${direction}_${depth}_${learn_rate}_${l2_reg}.log >> model_result.csv
done
done