Skip to content

[MGR + 1] r2_score - add more doctest examples#7727

Merged
NelleV merged 1 commit intoscikit-learn:masterfrom
bburns:bburns-r2-score-examples
Oct 25, 2016
Merged

[MGR + 1] r2_score - add more doctest examples#7727
NelleV merged 1 commit intoscikit-learn:masterfrom
bburns:bburns-r2-score-examples

Conversation

@bburns
Copy link
Copy Markdown
Contributor

@bburns bburns commented Oct 22, 2016

What does this implement/fix? Explain your changes.

Added simple examples showing a perfect score (1.0), an expected value score (0.0), and a negative score, to show what r2 does at a glance.

Any other comments?

I'm new to machine learning and was a bit confused by R^2 - in part due to reading a description that turned out to be incorrect - so thought these examples might help others also.

Add simple examples showing perfect score, expected value score, and negative score.
@amueller
Copy link
Copy Markdown
Member

people are often confused about this, in particular because our use of R^2 is possibly slightly non-standard. thanks! +1 for merge.

@amueller amueller changed the title r2_score - add more doctest examples [MGR + 1] r2_score - add more doctest examples Oct 24, 2016
@amueller amueller added this to the 0.18.1 milestone Oct 24, 2016
@NelleV NelleV merged commit 8f4ebb5 into scikit-learn:master Oct 25, 2016
@NelleV
Copy link
Copy Markdown
Member

NelleV commented Oct 25, 2016

Thanks for the patch!

amueller pushed a commit to amueller/scikit-learn that referenced this pull request Oct 25, 2016
Add simple examples showing perfect score, expected value score, and negative score.
amueller pushed a commit to amueller/scikit-learn that referenced this pull request Oct 27, 2016
Add simple examples showing perfect score, expected value score, and negative score.
sergeyf pushed a commit to sergeyf/scikit-learn that referenced this pull request Feb 28, 2017
Add simple examples showing perfect score, expected value score, and negative score.
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
Add simple examples showing perfect score, expected value score, and negative score.
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
Add simple examples showing perfect score, expected value score, and negative score.
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
Add simple examples showing perfect score, expected value score, and negative score.
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.

3 participants