forked from liming-vie/RUBER
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhyperparameter_search.sh
executable file
·77 lines (59 loc) · 5.01 KB
/
hyperparameter_search.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
71
72
73
74
75
76
77
#!/bin/bash
declare -a gru_num_units=(64 128 256 512)
declare -a init_learning_rate=(1 10 15 100 150) #(/1000)
declare -a margins=(10 25 50 75) #(/100)
# stuff
echo before for lop
for gru_num_unit in ${gru_num_units[@]}
do
for init_learning_rate in ${init_learning_rate[@]}
do
for margin in ${margins[@]}
do
tmux new-session -d -s personachat_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin}_batchnorm \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py personachat personachat train -gru_num_units=${gru_num_unit} -init_learning_rate=${init_learning_rate} -margin=${margin} -batch_norm=True"
tmux new-session -d -s personachat_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin}_batchnorm \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py personachat personachat train -gru_num_units=${gru_num_unit} \
-init_learning_rate=${init_learning_rate} -margin=${margin} -batch_norm=True -scramble=True"
tmux new-session -d -s personachat_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin}_batchnorm \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py personachat personachat train -gru_num_units=${gru_num_unit} \
-init_learning_rate=${init_learning_rate} -margin=${margin} -batch_norm=True -scramble=True -additional_negative_samples=True"
tmux new-session -d -s twitter_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin}_batchnorm \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py twitter twitter train -gru_num_units=${gru_num_unit} -init_learning_rate=${init_learning_rate} -margin=${margin} -batch_norm=True" \; \
tmux new-session -d -s twitter_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin}_batchnorm \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py twitter twitter train -gru_num_units=${gru_num_unit} \
-init_learning_rate=${init_learning_rate} -margin=${margin} -batch_norm=True -scramble=True" \; \
tmux new-session -d -s twitter_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin}_batchnorm \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py twitter twitter train -gru_num_units=${gru_num_unit} \
-init_learning_rate=${init_learning_rate} -margin=${margin} -batch_norm=True -scramble=True -additional_negative_samples=True" \; \
tmux new-session -d -s personachat_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin} \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py personachat personachat train -gru_num_units=${gru_num_unit} -init_learning_rate=${init_learning_rate} -margin=${margin}"
tmux new-session -d -s personachat_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin} \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py personachat personachat train -gru_num_units=${gru_num_unit} \
-init_learning_rate=${init_learning_rate} -margin=${margin} -additional_negative_samples=True"
tmux new-session -d -s personachat_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin} \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py personachat personachat train -gru_num_units=${gru_num_unit} \
-init_learning_rate=${init_learning_rate} -margin=${margin} -scramble=True -additional_negative_samples=True"
tmux new-session -d -s twitter_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin} \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py twitter twitter train -gru_num_units=${gru_num_unit} -init_learning_rate=${init_learning_rate} -margin=${margin}"
tmux new-session -d -s twitter_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin} \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py twitter twitter train -gru_num_units=${gru_num_unit} \
-init_learning_rate=${init_learning_rate} -margin=${margin} -scramble=True"
tmux new-session -d -s twitter_gru_${gru_num_unit}_learning_${init_learning_rate}_margin_${margin} \; \
send-keys "conda activate RUBER" \; \
send-keys "python hybrid_evaluation.py twitter twitter train -gru_num_units=${gru_num_unit} \
-init_learning_rate=${init_learning_rate} -margin=${margin} -scramble=True -additional_negative_samples=True"
done
done
done