[MRG+2] referred reliability diagrams and added citations#8527
Merged
jnothman merged 2 commits intoscikit-learn:masterfrom Mar 5, 2017
Merged
[MRG+2] referred reliability diagrams and added citations#8527jnothman merged 2 commits intoscikit-learn:masterfrom
jnothman merged 2 commits intoscikit-learn:masterfrom
Conversation
amueller
reviewed
Mar 4, 2017
sklearn/calibration.py
Outdated
|
|
||
| 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 |
Member
There was a problem hiding this comment.
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.
amueller
reviewed
Mar 4, 2017
doc/modules/calibration.rst
Outdated
|
|
||
| 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 |
Member
There was a problem hiding this comment.
you should break at 80 characters.
Author
|
Fixed the PEP 257 conventions. Sorry about that! |
Member
|
LGTM |
Member
|
LGTM as well, let's see what travis and appveyor have to say. |
Member
|
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.
|
Closed
herilalaina
pushed a commit
to herilalaina/scikit-learn
that referenced
this pull request
Mar 26, 2017
massich
pushed a commit
to massich/scikit-learn
that referenced
this pull request
Apr 26, 2017
Sundrique
pushed a commit
to Sundrique/scikit-learn
that referenced
this pull request
Jun 14, 2017
NelleV
pushed a commit
to NelleV/scikit-learn
that referenced
this pull request
Aug 11, 2017
paulha
pushed a commit
to paulha/scikit-learn
that referenced
this pull request
Aug 19, 2017
maskani-moh
pushed a commit
to maskani-moh/scikit-learn
that referenced
this pull request
Nov 15, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, 1995for seminal paper on reliability diagram methodsAny other comments?
Easy fix to docs - sprint 03.04.2017