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.

Choice parameters fail

See original GitHub issue

I 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:

  1. Python 3.8.11
  2. ax-platform==0.2.1
  3. botorch==0.5.0
  4. Windows 10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lena-kashtelyancommented, Sep 14, 2021

We are working on the new release, it should hopefully be out within the next two days.

1reaction
imbalu007commented, Sep 7, 2021

No problem. Please update when the fix is released and I will give it another try. Thanks!

Read more comments on GitHub >

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

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