-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Tune] Do not warn in BayesOpt w/ Uniform sampler #30350
Conversation
Signed-off-by: Antoni Baum <[email protected]>
Do we clarify in the docs what can be passed into the search space when using |
@justinvyu We indirectly mention that by stating the space has to be continuous - we don't really call this out specifically in any searcher, really. We should improve that in a future PR! |
Does the check need to also include other continuous spaces ( |
No, this searcher only supports basic uniform sampling: if isinstance(domain, Float):
if domain.sampler is not None and not isinstance(
domain.sampler, Uniform
):
logger.warning(
"BayesOpt does not support specific sampling methods. "
"The {} sampler will be dropped.".format(sampler)
)
return (domain.lower, domain.upper) # <- BayesOpt domain definition allowing only for uniform sampling |
Just curious, why is that BayesOpt only supports uniform sampler? btw, will this page be updated? https://docs.ray.io/en/latest/tune/examples/bayesopt_example.html It has the wrong warning.. |
It only supports the uniform sampler as that's what's the underlying library supports. Removed the warning from example! |
Signed-off-by: Antoni Baum <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
BayesOpt supports only uniform sampling, but we erroneously warn when the Uniform sampler is used (as opposed to no sampler at all). This PR fixes that issue. Signed-off-by: Antoni Baum <[email protected]> Signed-off-by: Weichen Xu <[email protected]>
Signed-off-by: Antoni Baum [email protected]
Why are these changes needed?
BayesOpt supports only uniform sampling, but we erroneously warn when the Uniform sampler is used (as opposed to no sampler at all). This PR fixes that issue.
Related issue number
Closes #30338
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.