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

Add IDLE message to optimizer to allow idle executors #49

Merged
merged 2 commits into from
May 14, 2020

Conversation

moritzmeister
Copy link
Contributor

@moritzmeister moritzmeister commented May 7, 2020

For some optimization algorithms it is required to let an executor be idle for a short while until another trial finishes. This is the case in HyperBand when all Iterations are running but nothing can be promoted to next rung.

This PR makes a change to the Optimizer API and allows developers to return "IDLE" from a get_suggestion() call. This will keep the executor idle until the optimizer returns a Trial again to be scheduled.

Tested with both example notebooks.

@moritzmeister moritzmeister added core PRs that address core functionality of Maggy. enhancement New feature or request labels May 7, 2020
@moritzmeister
Copy link
Contributor Author

@ssheikholeslami is there any case where we will need this for ablation too?

@ssheikholeslami
Copy link
Contributor

The immediate thing that comes to my mind is the option it gives us for synchronous execution - and we want to use this for evaluating how the asynchrony reduces total time of the study.
Other than that, LOCO would not use this, but other policies might find it useful. Definitely useful for NAS of course.

@moritzmeister moritzmeister merged commit 17d6816 into logicalclocks:master May 14, 2020
@moritzmeister moritzmeister deleted the executor-idle branch May 20, 2020 13:59
moritzmeister added a commit to moritzmeister/maggy that referenced this pull request May 20, 2020
moritzmeister pushed a commit to moritzmeister/maggy that referenced this pull request Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core PRs that address core functionality of Maggy. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants