-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexperiment1.bash
29 lines (26 loc) · 1.25 KB
/
experiment1.bash
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
#!/bin/bash
# Default parameters
iter=100; # Number of training-iterations each loop
cpu=1; # Number of unused CPUs
push=10; # After how many version git should push
# Run the program
for v in {20..30}
do
for i in {1..5}
do
# python3 experiment1.py --prob_gru=0 --prob_sru=0 --prob_lstm=0 --iterations=$iter --version=$v --unused_cpu=$cpu;
# python3 experiment1.py --prob_gru=0.6 --prob_sru=0 --prob_lstm=0 --iterations=$iter --version=$v --unused_cpu=$cpu;
# python3 experiment1.py --prob_gru=0 --prob_sru=0.6 --prob_lstm=0 --iterations=$iter --version=$v --unused_cpu=$cpu;
python3 experiment1.py --prob_gru=0 --prob_sru=0 --prob_lstm=0.6 --iterations=$iter --version=$v --unused_cpu=$cpu;
done
# python3 experiment2.py --prob_gru=0 --prob_sru=0 --prob_lstm=0 --version=$v --unused_cpu=$cpu;
# python3 experiment2.py --prob_gru=0.6 --prob_sru=0 --prob_lstm=0 --version=$v --unused_cpu=$cpu;
# python3 experiment2.py --prob_gru=0 --prob_sru=0.6 --prob_lstm=0 --version=$v --unused_cpu=$cpu;
python3 experiment2.py --prob_gru=0 --prob_sru=0 --prob_lstm=0.6 --version=$v --unused_cpu=$cpu;
if [ $(($v%$push)) == 0 ]; # Push every 10 generations
then
git add .;
git commit -m "Evaluated experiment1&2 (version $v)";
git push;
fi
done