-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG+2] referred reliability diagrams and added citations #8527
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
[MRG+2] referred reliability diagrams and added citations #8527
Conversation
sklearn/calibration.py
Outdated
@@ -511,7 +511,8 @@ def predict(self, T): | |||
|
|||
|
|||
def calibration_curve(y_true, y_prob, normalize=False, n_bins=5): | |||
"""Compute true and predicted probabilities for a calibration curve. | |||
"""Compute true and predicted probabilities for a calibration curve also |
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 first line in the docstring should be a single line (keep forgetting the pep number for this).
Please add the sentence as a separate remark.
doc/modules/calibration.rst
Outdated
@@ -118,7 +118,7 @@ is evaluated with Brier score :func:`brier_score_loss`, reported in the legend | |||
:align: center | |||
|
|||
One can observe here that logistic regression is well calibrated as its curve is | |||
nearly diagonal. Linear SVC's calibration curve has a sigmoid curve, which is | |||
nearly diagonal. Linear SVC's calibration curve or reliability diagram has a sigmoid curve, which is |
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.
you should break at 80 characters.
Fixed the PEP 257 conventions. Sorry about that! |
LGTM |
LGTM as well, let's see what travis and appveyor have to say. |
Thanks @mehak-sachdeva |
Codecov Report
@@ Coverage Diff @@
## master #8527 +/- ##
==========================================
+ Coverage 95.48% 95.48% +<.01%
==========================================
Files 342 342
Lines 60913 60987 +74
==========================================
+ Hits 58160 58233 +73
- Misses 2753 2754 +1
Continue to review full report at Codecov.
|
Reference Issue
Fixes #8423
What does this implement/fix? Explain your changes.
Added reliability diagram references in the docs and modified method docstring to reflect the same.
Also added citations to
Wilks, 1995
for seminal paper on reliability diagram methodsAny other comments?
Easy fix to docs - sprint 03.04.2017