-
Notifications
You must be signed in to change notification settings - Fork 294
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
Providing hints in parameters space to Ax #136
Comments
@riyadparvez - I'm assuming you mean setting certain parameters that you want evaluated during the exploration phase before Bayesian optimization actually kicks in? In that case, you are able to just attach custom trials to Ax, pass them to your evaluation function, and then report the result back to Ax (if using the service API). You can see an example here. In the case of a one-dimensional search space like you have above, it would mean:
If you have more than one parameter, you will have to manually set the other parameters as well. At this point, we don't have functionality that will tell Ax that you have to try certain values of one parameter in a range while keeping the other parameters completely flexible (at least through the Service API). This is essentially the problem of putting a strong prior on where you want the quasi-random search to go. The closest you could come to that if you have a lot of parameters and don't want to manually specify them is to do something custom via the developer API that would allow you to generate points from multiple search spaces, one that is a broad random search, and one that is a more narrow search. I can show you how to do that if you're interested, but hopefully the custom trials address your needs. |
Thanks a lot! It worked! |
Awesome! Not in a very straightforward way at the moment, albeit it's a TODO for us that we're going to roll into the functionality for returning all trials from the Service API @lena-kashtelyan mentioned here: #132. In the meantime, here's an example of what you can do (I based this off of the Service API tutorial, https://ax.dev/versions/latest/tutorials/gpei_hartmann_service.html):
|
@riyadparvez, did @kkashin's answer fully take care of your issue? |
@lena-kashtelyan yes, it does! Sorry for the late reply! Thanks a lot! |
We can specify
range
parameters. Is there any way to specify to force Ax to try some specific value of of the parameters in that range. For instance:What I am looking for is something similar to this:
In above
must_try
will dictate which parameters Ax must try. It's in a sense giving hints to Ax. Is it possible to do this right now?The text was updated successfully, but these errors were encountered: