Skip to content

Conversation

MarieSacksick
Copy link
Contributor

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Reading this example, I found some small elements that would benefit a change.

Any other comments?

Copy link

github-actions bot commented Jul 15, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 000aa03. Link to the linter CI: here

@@ -289,11 +290,12 @@
# %%
# Now that the coefficients have been scaled, we can safely compare them.
#
# .. warning::
# .. note::
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The term warning to me seemed to show that something was wrong in this example. (and the questions, without answer, seemed to indicate that too).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, that did look strange before.

Maybe like this?

Suggested change
# .. note::
# .. admonition:: Questions

That sets a custom title, see https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html.
It could also be .. hint::?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.. note:: is also fine.

Comment on lines -472 to -473
# model using, for example, the median absolute error of the model and the R
# squared coefficient.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no trace of R² below.

Comment on lines -510 to -512
# the above example, we do not need to scale the coefficients by the std. dev.
# of the feature values since this scaling was already
# done in the preprocessing step of the pipeline.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant with a couple of lines above + the title of the section.

Copy link
Member

@StefanieSenger StefanieSenger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are very valuable clarifications, thanks a lot @MarieSacksick! 😃

I only have a few minor comments and a question on the last sentence from the "Lessons learned" section.

@@ -289,11 +290,12 @@
# %%
# Now that the coefficients have been scaled, we can safely compare them.
#
# .. warning::
# .. note::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, that did look strange before.

Maybe like this?

Suggested change
# .. note::
# .. admonition:: Questions

That sets a custom title, see https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html.
It could also be .. hint::?

Copy link
Member

@StefanieSenger StefanieSenger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you @MarieSacksick!

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @MarieSacksick and @StefanieSenger

@jeremiedbb jeremiedbb merged commit 57a6704 into scikit-learn:main Jul 18, 2025
36 checks passed
@MarieSacksick MarieSacksick deleted the nitpick_docs branch July 18, 2025 15:06
lucyleeow pushed a commit to lucyleeow/scikit-learn that referenced this pull request Aug 22, 2025
…earn#31760)

Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com>
@jeremiedbb jeremiedbb mentioned this pull request Sep 3, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants