Skip to content

Example of nested cross-validation #5589

Closed

Description

@jnothman

We recently merged a change to cross-validation generators that allows, e.g. KFold to be performed within the training of an outer KFold operation. This should be illustrated with an example. Be creative!

Activity

  1. added
    Easy
    Moderate
    and removed
    Moderate
    on Oct 24, 2015
  2. glouppe commented on Oct 25, 2015

    @glouppe
    Contributor

    This should illustrate why model selection and model evaluation should remain separated, and also explain why using tuned CV scores to report generalization estimates is wrong.

  3. GaelVaroquaux commented on Oct 25, 2015

    @GaelVaroquaux
    Member
  4. raghavrv commented on Oct 25, 2015

    @raghavrv
    Member

    I am working on this and will send a PR shortly (in a day or two) (I am never saying in a day or two again :@)! Thanks for the link Gael!

  5. Sandy4321 commented on Oct 25, 2015

    @Sandy4321

    cool looking forward

    On Sun, Oct 25, 2015 at 4:46 PM, Raghav R V [email protected]
    wrote:

    I am working on this and will send a PR shortly!

    —
    Reply to this email directly or view it on GitHub
    #5589 (comment)
    .

  6. amueller commented on Dec 10, 2015

    @amueller
    Member

    @rvraghav93 are you still working on this or do you want to hand it over to someone else?

  7. raghavrv commented on Dec 11, 2015

    @raghavrv
    Member

    If I don't send a PR within 2 days I'll notify you to add the "Need Cont." tag!

    (Sorry for acting like a kid unwilling to give up any of his toys despite not playing with them :P)

  8. raghavrv commented on Dec 11, 2015

    @raghavrv
    Member

    BTW this one is a duplicate of #5641 (or the other way around) could you close that?

  9. Xndr7 commented on Apr 25, 2016

    @Xndr7

    I am looking to contribute to this project and, as a beginner, is this a good issue to start with? or has it been solved already?
    Cheers!:)

  10. raghavrv commented on Apr 25, 2016

    @raghavrv
    Member

    @Xndr7 Yes please go ahead! Ping me for any help!

  11. Xndr7 commented on Apr 26, 2016

    @Xndr7

    @rvraghav93 since this is my first contribution here, if you could guide me about the procedure with respect to this issue and also a few hints as to how to proceed, it would be much appreciated.
    PS:I have read the docs related to contributing and documentation and also have seen the link Gael posted above.

  12. raghavrv commented on Apr 30, 2016

    @raghavrv
    Member

    Apologies for the delay in response!

    You need to make an example where you show how nested cross-validation is done using our new model_selection's cross-validation objects. (which are from 0.18 not tied to data and hence can be passed to grid search/cross_val_score without having to worry about the size of data used in the inner loops).

    I'm not sure if this would genuinely help you or just be considered a shameless plug, but maybe you could read more about it from my blog post here - http://rvraghav93.blogspot.fr/2015/08/gsoc-2015-new-cross-validation.html

  13. mlliou112 commented on Jul 25, 2016

    @mlliou112
    Contributor

    Is this still being worked on? If not, I'd like to try picking this up!

  14. raghavrv commented on Jul 25, 2016

    @raghavrv
    Member

    Please go ahead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationEasy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions