Skip to content

DOC clearer what's new for model_selection - #5587

Merged
glouppe merged 1 commit into
scikit-learn:masterfrom
jnothman:model_selection-whatsnew
Oct 24, 2015
Merged

glouppe merged 1 commit into
scikit-learn:masterfrom
jnothman:model_selection-whatsnew

Conversation

@jnothman

Copy link
Copy Markdown
Member

Other notes:

  • the deprecation warnings on grid_search and cross_validation say they will be removed in 0.19. This seems short for such established modules.
  • what's new also seems to be missing some sprint merges, notably MLP

@jnothman
jnothman force-pushed the model_selection-whatsnew branch from d8be3a7 to 108d36a Compare October 24, 2015 11:23
@glouppe

glouppe commented Oct 24, 2015

Copy link
Copy Markdown
Contributor

Merging, thanks Joel

glouppe added a commit that referenced this pull request Oct 24, 2015
DOC clearer what's new for model_selection
@glouppe
glouppe merged commit 420e9b0 into scikit-learn:master Oct 24, 2015
@glouppe

glouppe commented Oct 24, 2015

Copy link
Copy Markdown
Contributor

By the way, do we have an example with nested cross-validation? (which is said to be easier in the changelog)

@jnothman

Copy link
Copy Markdown
Member Author

I had considered that at some point, and git diff 3f8743f^ 3f8743f examples suggests not.

@raghavrv

Copy link
Copy Markdown
Member

I will make one... Could you guide me on what kind of problem I should use nested cv on? (Please let me know if you have any sample dataset/(preferably multi-label) classification problem in mind that would best illustrate nested cv's effectiveness at generalizing which otherwise would not be known?)

@mblondel

Copy link
Copy Markdown
Member

A typical use case of nested cross validation is to use cross-validation for evaluation and for hyper-parameter estimation. So split the entire dataset into train / test, then further split train into training and validation sets.

@raghavrv

Copy link
Copy Markdown
Member

@mblondel Thanks could you elaborate a bit more on the classification problem or dataset...

One problem I thought of using for my blog post was -

GridSearch against the optimal k in kNN classifier using an artificial dataset (please let me know if there are any exiting label based datasets that this example can use instead) consisting of n (=n_labels) patients and p samples of medical observation from each (p= n_samples/n_labels).

We can show how for a bad choice of k without nested cv (using kfolds outsite and LOLO inside) we got a biased estimate and with one we can get a more unbiased estimate which helps us improve our choice (or range of k)

Is this a good problem for the example? (please feel free to modify the above to use a different clf / data / technique)

@glouppe

glouppe commented Oct 29, 2015

Copy link
Copy Markdown
Contributor

@rvraghav93 I am not sure I would add another level of complexity by having labels.

@raghavrv

Copy link
Copy Markdown
Member

Okay :)

@amueller amueller mentioned this pull request Oct 30, 2015
@amueller

Copy link
Copy Markdown
Member

Nested cross-validation was possible before, but not when providing a custom cv object and either stratification or the number of samples not being divisible by the number of folds.
Maybe StratifiedShuffleSplit would be a good example.

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.

5 participants