-
Notifications
You must be signed in to change notification settings - Fork 1
/
random_exec.sh
42 lines (32 loc) · 1.05 KB
/
random_exec.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
############
# settings #
############
CATHEGORY="random"
N_POSTERIOR_SAMPLES=1000
SVI_GP_VARIATIONAL_DISTRIBUTION="cholesky"
SVI_GP_VARIATIONAL_STRATEGY="default"
SVI_GP_BATCH_SIZE=100
SVI_GP_N_EPOCHS=2000
SVI_GP_LR=0.001
SVI_BNN_ARCHITECTURE="3L"
SVI_BNN_BATCH_SIZE=100
SVI_BNN_N_EPOCHS=2000
SVI_BNN_LR=0.001
SVI_BNN_N_HIDDEN=30
#######
# run #
#######
source venv/bin/activate
DATE=$(date +%Y-%m-%d)
TIME=$(date +%H:%M:%S)
LOGS="out/logs/"
mkdir -p $LOGS
OUT="${LOGS}${DATE}_${TIME}_out.txt"
python EP_GPs/train.py --cathegory=$CATHEGORY >> $OUT 2>&1
python SVI_BNNs/train.py --cathegory=$CATHEGORY --architecture=$SVI_BNN_ARCHITECTURE --batch_size=$SVI_BNN_BATCH_SIZE \
--n_epochs=$SVI_BNN_N_EPOCHS --lr=$SVI_BNN_LR --n_hidden=$SVI_BNN_N_HIDDEN \
--device="cpu">> $OUT 2>&1
python SVI_GPs/train.py --cathegory=$CATHEGORY --variational_distribution=$SVI_GP_VARIATIONAL_DISTRIBUTION \
--variational_strategy=$SVI_GP_VARIATIONAL_STRATEGY --batch_size=$SVI_GP_BATCH_SIZE \
--n_epochs=$SVI_GP_N_EPOCHS --lr=$SVI_GP_LR --device="cuda" >> $OUT 2>&1