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
RFC Set print_changed_only=True by default for meta-estimators #14008
Since 0.21 there is config option to only print the changed parameters in estimators. #13991 enabled it by default for docstrings which helps readability significantly.
Do we want to also make it default in general, at least for meta-estimators? Once one starts using Pipeline e.g. with ColumnTransformer etc the full repr is fairly difficult to parse and has mostly irrelevant information,
I don't see users setting print_changed_only=True config value in each notebook they use and IMO better defaults would be welcome.
Maybe this could involve changing the default to print_changed_only=None and then having a different behavior depending on if it's a meta-estimator or not.
I'm not quite sure what backward compatibility constraints this has.
So are you proposing that for Pipeline and all its steps, for instance, we
show changed only by default? Or only for the steps? I'd be interested in
trying this: add an option print_changed_only='embedded' or something and
make it default. But maybe it will be too mysterious to users.
Iirc, I and Gaël were both concerned that it should be easy to see what
parameters are available for an estimator, which the user hadn't
considered. IMO making that the case only when the estimator isn't embedded
in another is a very reasonable compromise.
I and Gaël were both concerned that it should be easy to see what
parameters are available for an estimator, which the user hadn't
considered.
Indeed. The question is: do the benefit (less crowding) overcome the
drawback mentioned.
IMO making that the case only when the estimator isn't embedded
in another is a very reasonable compromise.
Do you mean the opposite: turning "print_changed_only" on only when the
estimator is embedded? That would seem like an excellent behavior to me.
Overall, I can be easy convinced either way, I must say.
Activity
jnothman commentedon Jun 3, 2019
amueller commentedon Jun 5, 2019
I would be on-board with making it the global default. @GaelVaroquaux might think differently?
jnothman commentedon Jun 5, 2019
GaelVaroquaux commentedon Jun 5, 2019
rth commentedon Jun 3, 2020
Closing as this is enabled by default since 0.23