How to manually change parameters in service API?
See original GitHub issueParameters can be generated by
parameters, trial_index = ax_client.get_next_trial()
I encountered a case where I want to manually change the parameters. What is the procedure for me to do that? Thanks!
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Step 3: Parameters (API reference tutorial) | Documenting APIs
Parameters are options you can pass with the endpoint (such as specifying the response format or the amount returned) to influence the ...
Read more >REST API Design Best Practices for Parameter and Query ...
The simplest way to add in all parameter data is to put everything in the body. Many APIs work this way. Every endpoint...
Read more >Updating in the Power BI Service or with APIs - YouTube
In this video, Adam looks at how you can update Power BI parameters within the service or by using APIs. You can create...
Read more >REST API Best practices: Where to put parameters? [closed]
A REST API can have parameters in at least two ways: As part of the URL-path (i.e. /api/resource/parametervalue ); As a query argument...
Read more >Modifying REST API responses | Contentful
This guide illustrates how to use the `select` operator to modify the API payload to include only the relevant data.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@deng-cy Thanks for the explanation! Indeed, it is an early stopping problem and I believe you are interested in model-based early stopping, where the GP is jointly over (x, t). We are actually working on making this functionality available in Ax soon and it is currently being tested.
Note that we have an early stopping tutorial here that supports a basic, non-model-based setup: https://github.com/facebook/Ax/blob/main/tutorials/early_stopping/early_stopping.ipynb
For your exact problem, instead of abandoning, perhaps what you could do is to “artificially” complete the trial, using
ax_client.complete_trial
with data from your epoch-based model att=100
(and if your model gives uncertainty estimates, then you could send those to Ax as the sem). After that, you would be able to generate a new trial while making use of the predicted performance att=100
. Finally, if you want to modify the parameters, you can use @danielcohenlive’s suggestion above.The tricky part here is that after the original trial finishes running, you’ll want to go back and update the data using
ax_client.udpate_trial_data
.I’m going to close this if there are no further questions, but feel free to reopen it or create a new issue