Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[MRG+1] learning_curve takes error_score parameter and propagates it. #7397

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 1 commit into from
Sep 30, 2016

Conversation

julienaubert
Copy link
Contributor

@julienaubert julienaubert commented Sep 12, 2016

Reference Issue

Fixes #7370

What does this implement/fix? Explain your changes.

Learning curve will fail in some cases (not produce a learning curve). For example if using an estimator that raises when only one class is present - this may happen for the first iterations (small number of training samples). To fix this, learning_curve now takes error_score as a parameter and propagates it, the parameter's default value in learning_curve is 'raise' so the current behavior of failing is maintained - but this gives the option to set it to a value and have a learning_curve produced despite it failing for some iterations.

Any other comments?


This change is Reviewable

@jnothman jnothman added this to the 0.19 milestone Sep 16, 2016
@jnothman jnothman added the Bug label Sep 17, 2016
@jnothman
Copy link
Member

LGTM

@jnothman jnothman changed the title learning_curve takes error_score parameter and propagates it. [MRG+1] learning_curve takes error_score parameter and propagates it. Sep 17, 2016
@NelleV
Copy link
Member

NelleV commented Sep 30, 2016

Thanks!

@NelleV NelleV merged commit e108068 into scikit-learn:master Sep 30, 2016
TomDLT pushed a commit to TomDLT/scikit-learn that referenced this pull request Oct 3, 2016
amueller pushed a commit to amueller/scikit-learn that referenced this pull request Oct 14, 2016
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

learning_curve - small dataset with CV - handle case when few positive examples.
3 participants