hyperopt / hyperopt-sklearn

Hyper-parameter optimization for sklearn
hyperopt.github.io/hyperopt-sklearn
Other
1.57k stars 270 forks source link

InvalidParameterError, possible package version issue? #193

Closed JuliaWasala closed 1 year ago

JuliaWasala commented 1 year ago

When running the HyperoptEstimator, I get the following error:sklearn.utils._param_validation.InvalidParameterError: The 'base_estimator' parameter of AdaBoostClassifier must be an object implementing 'fit' and 'predict' or a str among {'deprecated'}. Got None instead.

I have a feeling this might be a package version issue. Do you know how I could solve it? Versions:

JuliaWasala commented 1 year ago

update: downgrading scikit-learn to 1.1.0 works -- an AdaBoostClassifier parameter that is set is deprecated in version 1.2.0. would be good to update the requirements.

mandjevant commented 1 year ago

Thank you for letting us know! Feel free to supply a pull request with the requirements changes. I will update hyperopt-sklearn to work with scikit-learn 1.2.0 soon.