Choice parameters fail
See original GitHub issueI am trying out Ax with a simple set of ‘choice’ parameters. Here is my script
from ax import optimize
best_parameters, best_values, experiment, model = optimize(
parameters=[
{
"name": "x1",
"type": "choice",
"values": [-10, 0, 10],
},
{
"name": "x2",
"type": "choice",
"values": [-10, 0, 10],
},
],
# Booth function
evaluation_function=lambda p: (p["x1"] + 2*p["x2"] - 7)**2 + (2*p["x1"] + p["x2"] - 5)**2,
minimize=True,
)
During the 6th trial, I am getting this error
TypeError: optimize_acqf_discrete() got an unexpected keyword argument 'num_restarts'
Looks like mk_ehvi_default_optimizer_options() in ax\models\torch\botorch_modular\default_options.py is setting this argument. I am not sure why this error is occurring only in the 6th trial and not before that.
Following is my environment:
- Python 3.8.11
- ax-platform==0.2.1
- botorch==0.5.0
- Windows 10
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Jenkins Declarative Pipeline detect first run and fail when ...
I've been trying to figure this out myself and it looks like the pipeline runs with a fully populated parameters list.
Read more >choice parameter no longer supports choices in pipeline
i'm getting an error "WorkflowScript: 80: Invalid parameter "choices", did you mean "name"?" with choice parameters in my pipelines. like ...
Read more >How To Use Parameters In Jenkins Declarative Pipeline
This blog post explains different ways to use parameters in Jenkins declarative pipeline including dynamic active choice parameters.
Read more >Jenkins Active Choice Parameter - YouTube
In this part we will learn how to use Active Choices Parameters in Jenkins parameterized job. I will show a practical example for...
Read more >How Do I Add a Choice Parameter in Jenkins? - YouTube
Timecodes ⏱:00:00 Introduction00:05 Starting point00:19 Create pipeline00:41 Generate parameter01:26 Run ...
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
We are working on the new release, it should hopefully be out within the next two days.
No problem. Please update when the fix is released and I will give it another try. Thanks!