Closed jnothman closed 1 year ago
Right now we have {meta}estimators which have fit(X, y, **fit_params)
and they pass all fit_params
to the underlying estimator. If this meta-estimator is to support sample_weight
, and the underlying estimator does too, then we would just use sample_weight
and also pass it down to the sub-estimator. This is the current API design, and SLEP006 doesn't really change that.
If the meta-estimator has a request to pass the thing called 'sample_weight' to its child, then if it supports sample_weight itself, there is no way to disable it using that sample weight, without the user modifying the child's request to use another alias. Does that make sense?
Yes, but the current behavior is the same, SLEP006 at least gives the user and the devs to allow user to disable sample_weight consumption in the meta-estimator.
Are you happy with what we've got? Can we close this one?
From https://github.com/scikit-learn/scikit-learn/pull/21284#discussion_r728109717: