forked from uber/bayesmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintegration_test.sh
executable file
·40 lines (30 loc) · 1.49 KB
/
integration_test.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
#!/bin/bash
set -ex
set -o pipefail
# Be able to check if using version out of tar ball
which bayesmark-launch
which bayesmark-exp
which bayesmark-agg
which bayesmark-anal
DB_ROOT=./notebooks
DBID=bo_example_folder
bayesmark-launch -n 15 -r 2 -dir $DB_ROOT -b $DBID -o RandomSearch PySOT OpenTuner-BanditA -c SVM DT -d boston breast -v
bayesmark-agg -dir $DB_ROOT -b $DBID
bayesmark-anal -dir $DB_ROOT -b $DBID -v
# Try ipynb export
python -m ipykernel install --name=bobm_ipynb --user
jupyter nbconvert --to html --execute notebooks/plot_mean_score.ipynb --ExecutePreprocessor.timeout=-1
jupyter nbconvert --to html --execute notebooks/plot_test_case.ipynb --ExecutePreprocessor.timeout=-1
# Try dry run
bayesmark-launch -n 15 -r 3 -dir $DB_ROOT -b $DBID -o RandomSearch PySOT OpenTuner-BanditA -c SVM DT -nj 50 -v
# Try again but use the custom optimizers
mv $DB_ROOT/$DBID old
bayesmark-launch -n 15 -r 1 -dir $DB_ROOT -b $DBID -o RandomSearch PySOT-New OpenTuner-BanditA-New -c SVM DT --opt-root ./example_opt_root -d boston breast -v
bayesmark-agg -dir $DB_ROOT -b $DBID
bayesmark-anal -dir $DB_ROOT -b $DBID -v
# Export again
jupyter nbconvert --to html --execute notebooks/plot_mean_score.ipynb --ExecutePreprocessor.timeout=-1
jupyter nbconvert --to html --execute notebooks/plot_test_case.ipynb --ExecutePreprocessor.timeout=-1
# Try dry run
bayesmark-launch -n 15 -r 2 -dir $DB_ROOT -b $DBID -o RandomSearch PySOT-New OpenTuner-BanditA-New -c SVM DT --opt-root ./example_opt_root -nj 50 -v
echo "success"