-
Notifications
You must be signed in to change notification settings - Fork 319
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
[FEATURE REQUEST]: Enable requests of batches of experiments in Service API #3120
Comments
This is something we generally want to support in our new APIs - @mpolson64 knows more about the plans and timelines. |
Hi @CompRhys! Are you sure you need batches or would |
We're designing in batches and so given that it exists in the Ax schema in dev API it would be nice to match that in the service API. We can do it in service API by just leaving X_pending and then defining the batch idx in our own data schema. So it's not needed but would be a nice to have. |
In Ax, If so, my suggestion would be to:
What do you think of this setup?
I'm not sure I understood this bit: why are you finding yourself needing to interact with |
I can't remember the details as I haven't looked at what my coworker worked up in a while but I believe we we're handling X_pending as we're not keeping the process alive or using the Ax backend. When we trigger we were manually recreating the object and then needed to do something to reassign X_pending. If we were to call |
|
Motivation
Currently the service API doesn't allow for batches of experiments to be requested unless they're sequential greedy strategies in which case it grabs experiments and feeds them into the
X_pending
state. There are some methods such as recently released qPO https://arxiv.org/abs/2410.06333 that are not compatible with this formulation. Otherwise (our current usecase) it would just be nice to be able to replicate the testing setup on the dev API where different arms are grouped into the same trial if they were requested at the same time.Our lab does batch processing of samples.
Describe the solution you'd like to see implemented in Ax.
add an
n
argument toAxClient.get_next_trial
or introduce an equivalentget_next_trial_batch
that enables this functionality.Happy to do this myself assuming that an interface/API acceptable to Ax maintainers is agreed.
Describe any alternatives you've considered to the above solution.
Just using the service API's serial trials and assigning other metadata to indicate that these candidates formed part of the same batch.
Is this related to an existing issue in Ax or another repository? If so please include links to those Issues here.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: