# create env
docker-compose up -d
docker exec -it optuna_pytorch /bin/bash
# run
python main.py
# remove env
exit
docker-compose down
# on host
# install mysql
brew install mysql
# check tables on Optuna db
mysql -h 127.0.0.1 --port 3306 -uroot -proot -D optuna -e 'show tables'
# check results on Optuna db
mysql -h 127.0.0.1 --port 3306 -uroot -proot -D optuna -e 'select * from trials'
# on host
docker exec -it optuna_pytorch /bin/bassh
tensorboard --logdir runs
# access to http://localhost:6006/#hparams on browser
mysql -h 127.0.0.1 --port 3306 -uroot -proot -D optuna -e 'drop database optuna'