araffin / rl-baselines-zoo

A collection of 100+ pre-trained RL agents using Stable Baselines, training and hyperparameter optimization included.
https://stable-baselines.readthedocs.io/
MIT License
1.12k stars 208 forks source link

Deprecation warning latest optuna version #56

Closed jarlva closed 4 years ago

jarlva commented 4 years ago

Using latest optuna and running training results in multiple warnings: The use ofoptuna.structs.TrialPrunedis deprecated. Please useoptuna.exceptions.TrialPrunedinstead

The following is a simple fix. in file utils\hyperparams_opt.py, change line 176 raise optuna.structs.TrialPruned() with: raise optuna.exceptions.TrialPruned()

araffin commented 4 years ago

Hello,

I would appreciate a PR that fixes this issue ;) (but maybe maintaining backward compatibility (depending on when optuna.exceptions was introduced))