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
Currently, only the parameters of the first and meta-level classifiers in the stacking implementations can currently be tuned. E.g., the following works
sclf=StackingCVClassifier(classifiers=[clf1, clf2],
meta_classifier=lr)
params= {'use_probas': [True, False], # add the use_probas parameter to the search space'kneighborsclassifier__n_neighbors': [1, 5],
'randomforestclassifier__n_estimators': [10, 50],
'meta-logisticregression__C': [0.1, 10.0]}
grid=GridSearchCV(estimator=sclf,
param_grid=params,
cv=5,
refit=True)
but the use_probas param of the StackingCVClassifier cannot be tuned; the following code will produce an error.
in the StackingCVClassifier would solve the issue though. Similar modification should be made to the other stacking classifier, the stacking regressors, and the EnsembleVoteClassifier.
The text was updated successfully, but these errors were encountered:
Oh yeah, thanks, that would be nice. I think it's not much, just the replacement like I outlined above (plus an entry in the changelog and inclusion in the unit tests :))
Currently, only the parameters of the first and meta-level classifiers in the stacking implementations can currently be tuned. E.g., the following works
but the
use_probas
param of theStackingCVClassifier
cannot be tuned; the following code will produce an error.Changing
to
in the
StackingCVClassifier
would solve the issue though. Similar modification should be made to the other stacking classifier, the stacking regressors, and theEnsembleVoteClassifier
.The text was updated successfully, but these errors were encountered: