Skip to content

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

Merged
NelleV merged 1 commit intoscikit-learn:masterfrom
julienaubert:learning_curve_error_score
Sep 30, 2016
Merged

[MRG+1] learning_curve takes error_score parameter and propagates it.#7397
NelleV merged 1 commit intoscikit-learn:masterfrom
julienaubert:learning_curve_error_score

Conversation

@julienaubert
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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