Search code examples
machine-learningscikit-learnhyperparametersoptuna

How to set optuna's study.optimize verbosity to 0?


I want to set optuna's study.optimize verbosity to 0. I thought optuna.logging.set_verbosity(0) might do it, but I still get the Trial 0 finished with value .... updates for every trial

What is the correct way to do this? Unfortunately, extensive searching through the docs still only results in the above method.

Many thanks in advance


Solution

  • Try this:

    optuna.logging.set_verbosity(optuna.logging.WARNING)
    

    It basically changes the level of verbosity.

    For more level choices, check optuna's official guides here.