8000 [MRG+2] referred reliability diagrams and added citations by mehak-sachdeva · Pull Request #8527 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[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

Merged
merged 2 commits into from
Mar 5, 2017

Conversation

mehak-sachdeva
Copy link

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 methods

Any other comments?

Easy fix to docs - sprint 03.04.2017

@@ -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
Copy link
Member

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.

@@ -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
Copy link
Member

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.

@mehak-sachdeva
Copy link
Author

Fixed the PEP 257 conventions. Sorry about that!
Thanks!

@amueller amueller changed the title referred reliability diagrams and added citations [MRG + 1] referred reliability diagrams and added citations Mar 4, 2017
@amueller
Copy link
Member
amueller commented Mar 4, 2017

LGTM

@jmschrei
Copy link
Member
jmschrei commented Mar 4, 2017

LGTM as well, let's see what travis and appveyor have to say.

@jmschrei jmschrei changed the title [MRG + 1] referred reliability diagrams and added citations [MRG+2] referred reliability diagrams and added citations Mar 4, 2017
@jnothman jnothman merged commit 6852a03 into scikit-learn:master Mar 5, 2017
@jnothman
Copy link
Member
jnothman commented Mar 5, 2017

Thanks @mehak-sachdeva

@codecov
Copy link
codecov bot commented Mar 5, 2017

Codecov Report

Merging #8527 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            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
Impacted Files Coverage Δ
sklearn/calibration.py 98.87% <ø> (ø)
sklearn/model_selection/_split.py 98.6% <0%> (-0.17%)
sklearn/model_selection/init.py 100% <0%> (ø)
sklearn/gaussian_process/tests/test_kernels.py 98.86% <0%> (+0.01%)
sklearn/model_selection/tests/test_split.py 95.96% <0%> (+0.25%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d64103f...ab18cea. Read the comment docs.

@Przemo10 Przemo10 mentioned this pull request Mar 17, 2017
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
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.

mention "reliability diagram" in calibration docs
4 participants
0