Closed jatkinson-CRL closed 4 years ago
Hello, Thanks for reporting the bug, Optuna 2.0 was released very recently.
I pushed a bug fix on the SB3 version here: https://github.com/DLR-RM/rl-baselines3-zoo/pull/36
Will do the same here soon.
Thanks!
Describe the bug Hyperparameter tuning fails with Optuna >= v2.0.0.
Code example Install optuna >= v2.0.0. Then, simply try to tune hyperparameters for any algorithm/environment:
This almost immediately throws the error:
Taking a look at the optuna code, should_prune() in version 2.0.0 (https://github.com/optuna/optuna/blob/v2.0.0/optuna/trial/_trial.py#L570) does not have an optional step argument anymore. In versions <=1.5.0, should_prune() has an optional step argument (https://github.com/optuna/optuna/blob/v1.5.0/optuna/trial/_trial.py#L538).
Downgrading to optuna <= v1.5.0 indeed fixes this error. Thanks for the great package!
System Info Describe the characteristic of your environment: