question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to manually change parameters in service API?

See original GitHub issue

Parameters 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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
danielrjiangcommented, Sep 13, 2022

@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 at t=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 at t=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.

0reactions
danielcohenlivecommented, Sep 16, 2022

I’m going to close this if there are no further questions, but feel free to reopen it or create a new issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found