Skip to content

Commit

Permalink
Set verbosity for optuna
Browse files Browse the repository at this point in the history
  • Loading branch information
YamLyubov committed Aug 4, 2023
1 parent aec8c8d commit eb7eccc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions golem/core/tuning/optuna_tuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def tune(self, graph: DomainGraphForTune, show_progress: bool = True) -> \
if init_parameters:
self.study.enqueue_trial(init_parameters)

verbosity_level = optuna.logging.INFO if show_progress else optuna.logging.WARNING
optuna.logging.set_verbosity(verbosity_level)

self.study.optimize(predefined_objective,
n_trials=self.iterations,
n_jobs=self.n_jobs,
Expand Down

0 comments on commit eb7eccc

Please sign in to comment.