Skip to content

Add successive halving for search? #12538

Closed

Description

@amueller

It's pretty fresh still but successive halving (aka simplified hyperband) has become a pretty popular search strategy. It might be interesting to provide a drop-in replacement for gridsearchcv, if not in sklearn then maybe in some well-published sklearn-contrib project?

Activity

  1. ogrisel commented on Mar 8, 2019

    @ogrisel
    Member

    I agree. But to move the discussion forward with those newish methods, I would really like to see an example python script or notebook that compares successive-halving-enabled search CV against vanilla randomized search CV with the same n_iter budget on a realistic enough scikit-learn pipeline.

    I think none of the projects linked above provide such an example.

  2. amueller commented on Mar 8, 2019

    @amueller
    MemberAuthor

    @ogrisel I did that yesterday and it blew RandomizedSearch out of the water. But I'm actually not sure the successive halving implementation I used is correct, and I'm actually not sure if I understood successive halving.

    Also see: #13145

    I'll hunker down with the hyperband and successive halving papers again today.
    Right now to me it looks like on MNIST, doing successive halving on logistic regression is better than doing LogisticRegressionCV.

  3. amueller commented on Mar 8, 2019

    @amueller
    MemberAuthor

    civisanalytics/civisml-extensions and https://github.com/thuijskens/scikit-hyperband don't directly support subsampling from what I can see, and I'm mostly interested in the subsampling approach because it's the most general and you can always use it as drop-in.
    If we had a way to resample in a pipeline you could implement that as a parameter though ;)

  4. janvanrijn commented on May 20, 2020

    @janvanrijn
    Contributor

    Is this already usable? Is there anything I can do to help this PR get forward?

    @Aurugorn might be interested in this

  5. NicolasHug commented on May 20, 2020

    @NicolasHug
    Member

    yes the PR is already usable (it's been for a year lol)

    All it needs is to be reviewed

  6. Aurugorn commented on May 20, 2020

    @Aurugorn

    @NicolasHug Thanks, will try to use this 👍

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions