-
-
Notifications
You must be signed in to change notification settings - Fork 25k
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
DOC improve model evaluation a bit #18166
Conversation
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.
Thanks @lorentzenchr minors nits but LGTM!
@@ -117,7 +117,7 @@ Usage examples: | |||
|
|||
.. note:: | |||
|
|||
The values listed by the ValueError exception correspond to the functions measuring | |||
The values listed by the ``ValueError`` exception correspond to the functions measuring |
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.
Just FYI we changed the meaning of single backquotes so that they have the same effect of double backquotes. I tend to use them because it's easier to read the plain text, but we don't have specific guidelines for this so do as you prefer
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.
Do single and double backquotes have different semantics?
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.
They are exactly the same now.
doc/modules/model_evaluation.rst
Outdated
predictions. | ||
This function returns the mean squared error of the actual outcome | ||
:math:`y \in \{0,1\}` and the predicted probability estimate | ||
:math:`p = \operatorname{Pr}(y = 1)` (``predict_proba``) as score: |
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.
We like to link to the glossary when it might make sense
:math:`p = \operatorname{Pr}(y = 1)` (``predict_proba``) as score: | |
:math:`p = \operatorname{Pr}(y = 1)` (:term:`predict_proba`) as score: |
I would also add "as outputed by ..."
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.
I replaced "as score" by "as outputted by" because, as you pointed out, it is a loss, not a score in scikit-learn terms.
@NicolasHug Thanks for your fast review. |
@@ -117,7 +117,7 @@ Usage examples: | |||
|
|||
.. note:: | |||
|
|||
The values listed by the ValueError exception correspond to the functions measuring | |||
The values listed by the ``ValueError`` exception correspond to the functions measuring |
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.
They are exactly the same now.
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.
otherwise LGTM
@thomasjpfan Thanks for review an approval. |
What does this implement/fix? Explain your changes.
This improves the User Guide about model evaluation a little bit.
Any other comments?
Inspired by reading #18051.