Repository navigation
ENH: Display fitted attributes in HTML representation - #33399
Conversation
|
Thank you so much!! 🪅 🥳 |
antoinebaker
left a comment
There was a problem hiding this comment.
Here a first pass @DeaMariaLeon , mostly nits and typos ! The rendering looks good.
Side remark not related to this PR
The link to the fitted attribute docstring looks a bit ugly due to the text fragment anchor, for example:
https://scikit-learn.org/dev/modules/generated/sklearn.linear_model.LogisticRegression.html#:~:text=classes_,-ndarray%20of%20shape%20%28n_classes%2C%20%29
Ideally setting an id for each attribute doctring could be nice, on the previous example:
https://scikit-learn.org/dev/modules/generated/sklearn.linear_model.LogisticRegression.html#classes
Maybe we could start a separate issue/PR to improve generate_link_to_param_doc?
antoinebaker
left a comment
There was a problem hiding this comment.
A few nitpicks but LGTM ! Thanks again @DeaMariaLeon.
| By :user:`Dea María Léon <DeaMariaLeon>`, | ||
| :user: `Jérémie du Boisberranger <jeremiedbb>`. |
There was a problem hiding this comment.
| By :user:`Dea María Léon <DeaMariaLeon>`, | |
| :user: `Jérémie du Boisberranger <jeremiedbb>`. | |
| By :user:`Dea María Léon <DeaMariaLeon>` and :user: `Jérémie du Boisberranger <jeremiedbb>`. |
|
I think I implemented all the feedback up to now. Thanks everybody. |
|
Merged! Thank you very much @DeaMariaLeon and all reviewers! |
|
@DeaMariaLeon I now realize that we should have triggered a full doc build with a last commit with |
|
Here, the fitted attributes are shown: https://scikit-learn.org/dev/auto_examples/compose/plot_column_transformer_mixed_types.html but not on the previous one. EDIT: Never mind, there is the "evaluate" at the end of the cells. Sorry for the ping. |
|
My point was to push a final commit in the PR to trigger the build of all the gallery examples in scikit-learn (which typically nearly 1h) to check that merging it will not risk making one of them fail and failing the Circle CI of subsequent PR branched of off But fortunately it's green on |
|
Sorry about the misunderstanding. I see what you mean. There is a CI test failure but it doesn't seem to be related to this pr https://github.com/scikit-learn/scikit-learn/actions/runs/22860215196/job/66311978573 |

Reference Issues/PRs
Supersedes #31442
See #31442 (comment)
Towards #26595
Friendly ping to @jeremiedbb @antoinebaker
What does this implement/fix? Explain your changes.
I put the information in 3 columns.
I was going to (try) to modify or remove
ndarrayor try to show it "prettier" but I'm actually not sure if this is what you meant.AI
usage disclosure
I used AI assistance for:
estimator.py- EDIT: I didn't add code related to this check for the moment.Any other comments?