optuna / optuna-integration

Extended functionalities for Optuna in combination with third-party libraries.
https://optuna-integration.readthedocs.io/en/latest/index.html
MIT License
39 stars 30 forks source link

Accept `Mapping` as `param_distributions` in `OptunaSearchCV` #172

Closed yu9824 closed 1 month ago

yu9824 commented 1 month ago

Motivation

171 explained.

Description of the changes

If param_distributions is Mapping other than dict, convert it to dict.

Pickling will cause an error if not converted.

c-bata commented 1 month ago

@y0z Could you review this PR?