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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tune] HEBO concurrency fix after discussion with authors #14504

Merged
merged 5 commits into from
Mar 5, 2021

Conversation

Yard1
Copy link
Member

@Yard1 Yard1 commented Mar 5, 2021

Why are these changes needed?

This PR implements a new concurrency limiting system built into the HEBOSearch searcher itself (similar to the one in TuneBOHB) in order to ensure the algorithm works as intended. This removes the need for wrapping HEBOSearch in a ConcurrencyLimiter.

The new behavior is to limit the amount of concurrent trials to the value of max_concurrent argument and ensure they are done in batches.

Hopefully this will be the last PR for this 馃槄

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@Yard1
Copy link
Member Author

Yard1 commented Mar 5, 2021

@krfricke HEBO authors have been insistent on this change, let me know if you think there's a better way to limit concurrency in a searcher itself.

Comment on lines +254 to 257
n_suggestions=self._max_concurrent)
self._suggestions_cache = suggestion.to_dict("records")
params = self._suggestions_cache.pop(0)
suggestion = pd.DataFrame(params, index=[0])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you return n_suggestions here, what happens? Does it return a list of dicts instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HEBO outputs and inputs dataframes, so with n_suggestions set to eg. 4 it would output a 4 row dataframe

Copy link
Contributor

@richardliaw richardliaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great! hopefully the tests don't fail

@richardliaw richardliaw merged commit 2002cff into ray-project:master Mar 5, 2021
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.

None yet

2 participants