-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript_batch_cifar.sh
55 lines (48 loc) · 998 Bytes
/
script_batch_cifar.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
#! /bin/bash
TIME_STAMP=$(date +%m-%d)
FUNCTION=cnn\_cifar\_10
NUMQUERIES=10
NUMRUNS=2
NMAX=20
BATCHSIZE=20
NUMHYPS=1
NFEATURE=300
NPARAL=10
NSTO=10
NTRAIN=300
NYSAMPLE=100
NINIT=10
DTYPE=float64
FOLDER=$FUNCTION/result\_batch\_BO/$TIME_STAMP\_batch\_$BATCHSIZE\_run\_$NUMRUNS
if [[ ! -e $FOLDER ]]; then
mkdir -p $FOLDER
fi
declare -a crit=('ftl')
# 'sftl')
declare -a mode=('empirical')
# 'sample')
declare -a gpu=(0)
for ((i=0;i<${#crit[@]};++i));
do
# Could add "nohup"
python bo\_batch.py \
--gpu "${gpu[i]}" \
--function $FUNCTION \
--folder "$FOLDER" \
--criterion "${crit[i]}" \
--mode "${mode[i]}" \
--numqueries $NUMQUERIES \
--numruns $NUMRUNS \
--numhyps $NUMHYPS \
--nmax $NMAX \
--nfeature $NFEATURE \
--nparal $NPARAL \
--nsto $NSTO \
--ntrain $NTRAIN \
--nysample $NYSAMPLE \
--ninit $NINIT \
--batchsize $BATCHSIZE \
--dtype $DTYPE \
# > $FOLDER/log_"${crit[i]}".txt \
# 2> $FOLDER/err_"${crit[i]}".txt &
done