-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
doc(interpretation linear model): small changes #31760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -289,11 +290,12 @@ | |||
# %% | |||
# Now that the coefficients have been scaled, we can safely compare them. | |||
# | |||
# .. warning:: | |||
# .. note:: |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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?
# .. 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::
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. note::
is also fine.
# model using, for example, the median absolute error of the model and the R | ||
# squared coefficient. |
There was a problem hiding this comment.
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.
# 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. |
There was a problem hiding this comment.
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.
examples/inspection/plot_linear_model_coefficient_interpretation.py
Outdated
Show resolved
Hide resolved
examples/inspection/plot_linear_model_coefficient_interpretation.py
Outdated
Show resolved
Hide resolved
examples/inspection/plot_linear_model_coefficient_interpretation.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
examples/inspection/plot_linear_model_coefficient_interpretation.py
Outdated
Show resolved
Hide resolved
examples/inspection/plot_linear_model_coefficient_interpretation.py
Outdated
Show resolved
Hide resolved
@@ -289,11 +290,12 @@ | |||
# %% | |||
# Now that the coefficients have been scaled, we can safely compare them. | |||
# | |||
# .. warning:: | |||
# .. note:: |
There was a problem hiding this comment.
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?
# .. 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::
?
examples/inspection/plot_linear_model_coefficient_interpretation.py
Outdated
Show resolved
Hide resolved
examples/inspection/plot_linear_model_coefficient_interpretation.py
Outdated
Show resolved
Hide resolved
examples/inspection/plot_linear_model_coefficient_interpretation.py
Outdated
Show resolved
Hide resolved
…on.py Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com>
…on.py Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com>
There was a problem hiding this 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!
There was a problem hiding this 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
…earn#31760) Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com>
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?