ENH: Display the number and names of output features#31937
ENH: Display the number and names of output features#31937DeaMariaLeon wants to merge 198 commits intoscikit-learn:mainfrom
Conversation
|
I wonder if I can have feedback before I add/fix more tests. |
|
One feedback of @ogrisel IRL is to directly show the feature names using the same pattern than "Parameters". I personally agree with @jeremiedbb feedback: I would like something smaller. Also write now, we have to mention "output features" instead of simply "features" because of the ambiguity input/output when attached to the estimator. So the proposal to make the "feature" being blocks leaving on their own is nice I think because there is not ambiguity anymore. |
|
I'll work on this, thanks for the feedback. Just:
Should I add the feature names on this PR? I remember @glemaitre saying that they should be added on a separate PR. |
I want to dissociate it at first but since we are going to create a new block, it might be better to have directly the feature names as well. |
a2c76ba to
9c93171
Compare
I thought that his comment was just an explanation on the question you had. I didn't understand I should actually make the change. I'll do it.
|
|
I did reply to #31937 (comment), but it's only visible on github's "Files changed". |
|
In this comment: #31937 (comment)
Me:
|
Well if the set_output(transform="pandas") does not work, don't bother :) Could you instead create a new issue with a screeenshot for this example ? (after this PR is merged) |
Looking at this again, I fail to see the issue. On that particular example (plot_column_transformer_mixed_types), the input of |
|
You are right, it would be easier. |
|
I mean: it works with a small change to the example. EDIT (note for myself): There was a known issue with OneHotEncoder, and needed to set |
|
Example can be seen from the built docs: |
|
Up to here, I think I have added all the feedback from @antoinebaker EDIT: Imported |
antoinebaker
left a comment
There was a problem hiding this comment.
Thanks for the PR @DeaMariaLeon! LGTM.
|
Thanks @antoinebaker! |




Reference Issues/PRs
Towards #26595
Any other comments?
Example
