scikit-hyperband icon indicating copy to clipboard operation
scikit-hyperband copied to clipboard

Issue with scikit-learn 0.21

Open thoo opened this issue 4 years ago • 0 comments

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'

thoo avatar Aug 22 '19 14:08 thoo