-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.sh
executable file
·35 lines (31 loc) · 911 Bytes
/
run.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
#!/bin/sh
if [[ "$1" == "run_train" ]]; then
for FOLDER in 'acrobot' 'fashion_mnist' 'mnist' 'mountain_car'; do
cd $FOLDER
rm *.json 2>/dev/null
sbatch --array=0-$(./build.sh train) ./run_cc.sh
cd ..
done
fi
if [[ "$1" == "merge_train" ]]; then
for FOLDER in 'acrobot' 'fashion_mnist' 'mnist' 'mountain_car'; do
cd $FOLDER
sbatch ./merge_cc.sh '../'"$FOLDER"'_validation.json'
cd ..
done
fi
if [[ "$1" == "run_test" ]]; then
for FOLDER in 'acrobot' 'fashion_mnist' 'mnist' 'mountain_car'; do
cd $FOLDER
rm *.json 2>/dev/null
sbatch --array=0-$(./build.sh test) ./run_cc.sh
cd ..
done
fi
if [[ "$1" == "merge_test" ]]; then
for FOLDER in 'acrobot' 'fashion_mnist' 'mnist' 'mountain_car'; do
cd $FOLDER
sbatch ./merge_cc.sh '../'"$FOLDER"'_test.json'
cd ..
done
fi