Skip to content

Commit

Permalink
fix: optuna docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubczakon committed Nov 13, 2019
1 parent 5afb14e commit f37d1e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neptunecontrib/monitoring/optuna.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def NeptuneMonitor(experiment=None):
monitor = opt_utils.NeptuneMonitor()
Run Optuna training passing monitor as callback::
...
study = optuna.create_study(direction='maximize')
study.optimize(objective, n_trials=100, callbacks=[monitor])
Expand Down Expand Up @@ -74,6 +75,7 @@ def log_study(study, experiment=None):
monitor = opt_utils.NeptuneMonitor()
Run Optuna training passing monitor as callback::
...
study = optuna.create_study(direction='maximize')
study.optimize(objective, n_trials=100, callbacks=[monitor])
Expand Down

0 comments on commit f37d1e0

Please sign in to comment.