forked from tjpalmer/keepaway
-
Notifications
You must be signed in to change notification settings - Fork 4
/
batch-train.sh
executable file
·43 lines (33 loc) · 1.14 KB
/
batch-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
#!/bin/bash -
#===============================================================================
#
# FILE: run.sh
#
# USAGE: ./run.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Aijun Bai (),
# ORGANIZATION:
# CREATED: 08/01/2016 18:59
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
NPROC=`nproc`
N=`expr $NPROC / 2 - 1`
make clean
make -j `nproc` release
exec 1>console.log 2>&1
./train.sh -b none -sf -g 1.0 -L 0.5 -A 0.125 -I 0.5 $* & #hamq
gamma=1.0
for i in `seq $N`; do
lambda=$(python -c "import random; print('{:.3f}'.format(random.uniform(0.0, 1.0)))")
alpha=$(python -c "import random; print('{:.3f}'.format(random.uniform(0.001, 0.25)))")
initialweight=$(python -c "import random; print('{:.3f}'.format(random.uniform(0.0, 1.0)))")
./train.sh -b none -sf -g $gamma -L $lambda -A $alpha -I $initialweight $* & #hamq
done
wait