-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun-all-mlp-test-train.sh
executable file
·47 lines (39 loc) · 1.66 KB
/
run-all-mlp-test-train.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
#!/bin/bash
#
set -e
weka_out=../weka-out
# Get time as a UNIX timestamp (seconds elapsed since Jan 1, 1970 0:00 UTC)
T="$(date +%s)"
momentums=( 2 3 5)
learningrates=( 3 5 7 )
epochs=( 100 200 300 400 500 600 700 1000)
for epoch in "${epochs[@]}"
do
for learningrate in "${learningrates[@]}"
do
for momentum in "${momentums[@]}"
do
echo "Running ./run-mlp-test-train.sh $1 $epoch 0.$learningrate 0.$momentum $1_mlp_${epoch}_lr0${learningrate}_m0${momentum}_tt.out"
echo "Running ./run-mlp-test-train.sh $1 $epoch 0.$learningrate 0.$momentum $1_mlp_${epoch}_lr0${learningrate}_m0${momentum}_tt.out" > $weka_out/run-all-mlp.out
./run-mlp-test-train.sh $1 $epoch 0.$learningrate 0.$momentum $1_mlp_${epoch}_lr0${learningrate}_m0${momentum}_tt.out
done
done
done
#./run-mlp.sh vote 200 0.3 0.2 vote_mlp_200_lr03.out
#./run-mlp.sh vote 300 0.3 0.2 vote_mlp_300_lr03.out
#./run-mlp.sh vote 400 0.3 0.2 vote_mlp_400_lr03.out
#./run-mlp.sh vote 500 0.3 0.2 vote_mlp_500_lr03.out
#./run-mlp.sh vote 600 0.3 0.2 vote_mlp_600_lr03.out
#./run-mlp.sh vote 700 0.3 vote_mlp_700_lr03.out
#./run-mlp.sh vote 1000 0.3 vote_mlp_1000_lr03.out
# Learning rate of 0.5 (Better)
#./run-mlp.sh vote 100 0.5 vote_mlp_100_lr05.out
#./run-mlp.sh vote 200 0.5 vote_mlp_200_lr05.out
#./run-mlp.sh vote 300 0.5 vote_mlp_300_lr05.out
#./run-mlp.sh vote 400 0.5 vote_mlp_400_lr05.out
#./run-mlp.sh vote 500 0.5 vote_mlp_500_lr05.out
#./run-mlp.sh vote 600 0.5 vote_mlp_600_lr05.out
#./run-mlp.sh vote 700 0.5 vote_mlp_700_lr05.out
#./run-mlp.sh vote 1000 0.5 vote_mlp_1000_lr05.out
T="$(($(date +%s)-T))"
echo "Total Elapsed Time (seconds): ${T}" >> $weka_out/run-all-mlp.out