You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If works normally with sklearn 1-3.2, but failed with sklearn 1.6.0 in the error TypeError: got an unexpected keyword argument 'fit_params'. I believe that it because sklearn has deprecated the fit_params since version 1.4.
prediction=cross_val_predict(
model,
X,
y,
groups=groups,
cv=final_cv,
n_jobs=self.n_jobs,
params=fit_params, # change this line to paramsverbose=self.verbose,
pre_dispatch=self.pre_dispatch,
method="predict_proba"ifself.use_probaselse"predict",
)
.
The code is working normally.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am running the latest example of
mlxtend
StackingCVClassifier
andsklearn
(GridSearchCV
StackingCVClassifier: Stacking with cross-validation - mlxtend).If works normally with
sklearn 1-3.2
, but failed withsklearn 1.6.0
in the errorTypeError: got an unexpected keyword argument 'fit_params'
. I believe that it becausesklearn
has deprecated thefit_params
since version 1.4.Steps/Code to Reproduce
I tried to modify the code of
mlxtend/classifier/stacking_cv_classification.py", line 269
fromto
.
The code is working normally.
The text was updated successfully, but these errors were encountered: