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
{{ message }}
Repository navigation
SelectFromModel - hyperparameters of an estimator are not changed in a Pipeline #7756
Or maybe let's just remove the warm-starting. If someone want's to use the warm-start, they can either use the prefit option, or they can call fit on estimator_.
Activity
amueller commentedon Oct 26, 2016
that looks like a pretty bad bug....
amueller commentedon Oct 26, 2016
That means that in the first call to
fit,SelectFromModelcreatesestimator_and reuses it later, I think.jirispilka commentedon Oct 26, 2016
That means that in the first call to fit, SelectFromModel creates estimator_ and reuses it later, I think.Yes and sorry for mixing this with a pipeline, your code is simpler.
Thanks.
jnothman commentedon Oct 26, 2016
Indeed, yuck. I can't remember what motivated this logic, but it's the problem. Calling
fita second time should not reuse an existingestimator_.jnothman commentedon Oct 26, 2016
Yes, a misguided feature added here: https://github.com/scikit-learn/scikit-learn/pull/4242/files#diff-f85e12a6fa5fdaf04b1f164fcc3a636dR119
Should remove it, or permit only with a
warm_start=Trueoption.jnothman commentedon Oct 26, 2016
Such an option had existed :( 459cb9b
amueller commentedon Oct 26, 2016
:( @MechCoder do you remember what happened to 459cb9b? Revert that commit and add a regression test?
@spilkjir no worries, it took me a while to figure out what's going on. Thanks for the report.
amueller commentedon Oct 26, 2016
Or maybe let's just remove the warm-starting. If someone want's to use the warm-start, they can either use the prefit option, or they can call
fitonestimator_.amueller commentedon Oct 26, 2016
(or they could abuse
partial_fit). Is callingpartial_fitafter callingfitdefined behavior?jnothman commentedon Oct 26, 2016
But this is as released in 0.17.0 so I don't really think it's a 0.18.1 blocker.
Recall that, thanks to clone, this does not break CV, grid search.
It does emphasise the need for tests that
fit()is usually from cold.