-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Support fit_params in stacking #18028
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
Comments
The difference with MultiOutputEstimator is that there the sample_weight
would need to be passed only to a single class of estimator, where here it
is heterogeneous. Should it handle fit_params like in a Pipeline and deal
with name-based prefixing? Should it handle fit_params like a FeatureUnion
and pass the same fit params to all estimators involved?
Possibly best to wait on
scikit-learn/enhancement_proposals#16... we're
working on it!
|
@jnothman thanks for your reply. From an earlier issue, sample weights appear to be the underlying motivation for the design principle in "I think Originally posted by @amueller in #7136 (comment) With |
Currently, there is no support for
**fit_params
in thefit
method of_BaseStacking
:scikit-learn/sklearn/ensemble/_stacking.py
Line 110 in fd23727
As introduced in issue #15953 for
_MultiOutputEstimator
, it seems natural to extend the utility to stacking. A proposed implementation in the base stacking class is as follows:Subsequently, alter the fit methods for
StackingClassifier
andStackingRegressor
such that they support**fit_params
. If this is favorable, then I can write an implementation and start the pull request.The text was updated successfully, but these errors were encountered: