Skip to content
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

Revert to default inf max_trials and pool-size of 1 #659

Merged
merged 7 commits into from
Sep 14, 2021

Commits on Sep 9, 2021

  1. Move pool-size to worker conf, cancel deprecation

    Why:
    
    The new default behavior is confusing for users. It is also difficult to
    determine a good default max_trials, so having not enough or to many
    trials sampled by default at the start of HPO can be annoying for many
    users. Using inf by default and iterating with pool-size may be the best
    alternative.
    
    Now that we have a support for n-workers, the argument pool-size we
    previously deprecated actually make sense. By default, pool-size
    should be equal to number of workers. We have n-workers set to 1 by
    default, so by default we are back to previous behavior; sampling 1
    trial at a time, until max_trials.
    
    How:
    
    The producer now takes a pool size as argument when producing. The same
    applies to ExperimentClient.suggest() and ExperimentClient.workon(). The
    pool size is used to sample multiple trials at a time and increase I/O
    efficiency.
    
    The producer now keeps track of number of new trials so that
    if multiple workers are producing new trials with a non-seed algorithm
    (hence they produce different trials and there are no conflicts leading
    to backoff) they will stop if they generated together up to `pool_size`
    trials.
    
    Note:
    
    Pool-size is moved to to worker configuration instead. Since pool-size
    relates to n-workers, which is part of worker configuration, having
    pool-size in worker configuration makes more sense.
    bouthilx committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    ddf6925 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. Configuration menu
    Copy the full SHA
    35ce5c4 View commit details
    Browse the repository at this point in the history
  2. Fix experiment tree tests

    Why:
    
    There was a bug in the tests. The functions to generate trials would
    generate more than requested because of the new behavior of producer
    attempting to produce all trials at once, once the value of `max_trials`
    was conflicting with the number of trials requested to the trial
    generating function for tests (`orion.testing.evc.generate_trials`).
    
    Fortunately the bug in the tests did not seem to miss any bugs in the
    code they were testing.
    
    How:
    
    Adjust the expected numbers based on the corrected behiavor. The numbers
    make indeed more sense now.
    bouthilx committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    c458f13 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c7d3e0c View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. Apply suggestions from code review

    Co-authored-by: Lin Dong <michaeltunglin@gmail.com>
    bouthilx and donglinjy committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    db385f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72698c0 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feature/back_to_pool_size' of github.com:bouthilx/orion…

    … into feature/back_to_pool_size
    bouthilx committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    32c184c View commit details
    Browse the repository at this point in the history