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

Issue with scikit-learn 0.21 #7

Open
thoo opened this issue Aug 22, 2019 · 0 comments
Open

Issue with scikit-learn 0.21 #7

thoo opened this issue Aug 22, 2019 · 0 comments

Comments

@thoo
Copy link

thoo commented Aug 22, 2019

self.fit_params is deprecated in scikit-learn 0.21.0 ( https://github.com/scikit-learn/scikit-learn/commit/#13519 ). scikit-optimize also has the similar issue and you can read more in this page.

When I run this,

model = lgb.LGBMClassifier()
param_dist = {
    'max_depth': [3, 5,10]
}
search = HyperbandSearchCV(model, param_dist, 
                           resource_param='n_estimators',
                           scoring='roc_auc')

I got the error like this.

TypeError: __init__() got an unexpected keyword argument 'fit_params'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant