Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidParameterError, possible package version issue? #193

Closed
JuliaWasala opened this issue Dec 15, 2022 · 2 comments
Closed

InvalidParameterError, possible package version issue? #193

JuliaWasala opened this issue Dec 15, 2022 · 2 comments
Assignees
Labels

Comments

@JuliaWasala
Copy link

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:

  • Python: 3.9.15
  • hpsklearn: 1.0.3
  • numpy: 1.23.5
  • scikit-learn 1.2.0
  • scipy 1.9.3
@JuliaWasala
Copy link
Author

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants