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.

ModuleNotFoundError: No module named 'botorch.models.fidelity'

See original GitHub issue

Run a simple optimization loop throws ModuleNotFoundError, using ax-platform==0.1.6 version.

from ax import optimize
best_parameters, best_values, experiment, model = optimize(
        parameters=[
          {
            "name": "x1",
            "type": "range",
            "bounds": [-10.0, 10.0],
          },
          {
            "name": "x2",
            "type": "range",
            "bounds": [-10.0, 10.0],
          },
        ],
        # Booth function
        evaluation_function=lambda p: (p["x1"] + 2*p["x2"] - 7)**2 + (2*p["x1"] + p["x2"] - 5)**2,
        minimize=True,
    )

Traceback

Traceback (most recent call last): from ax.models.torch.botorch_defaults import ( File “/home/zoran/MyProjects/mindsdb-examples/pl/lib/python3.7/site-packages/ax/models/torch/botorch_defaults.py”, line 12, in <module> from botorch.models.fidelity.gp_regression_fidelity import ( ModuleNotFoundError: No module named ‘botorch.models.fidelity’

It looks like there are changes in the latest botorch 0.2.0 version. Downgrading to 0.1.4 fixes the issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lena-kashtelyancommented, Dec 27, 2019

This should be resolved in latest Ax, 0.1.8. Please reopen if the issue does not go away for you with version update, @ZoranPandovski!

1reaction
Balandatcommented, Dec 26, 2019
  1. The botorch pip version is already 0.2.0, correct. You can use that with the Ax master - you can install the Ax master via pip using pip install git+ssh://git@github.com/facebook/Ax.git as described in the readme.

  2. You can install the specific botorch version from pip using pip install -e git://github.com/pytorch/botorch.git@v0.1.4. Then you can install the Ax release as usual.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'botorch.utils.multi_objective' - Stack Overflow
Although I have installed botorch , when I want to run from botorch.utils.multi_objective.box_decompositions.non_dominated import ...
Read more >
Source code for botorch.models.gp_regression_fidelity
This source code is licensed under the MIT license found in the # LICENSE file ... The multi-fidelity model models both the low-...
Read more >
Search Algorithms (tune.search) — Ray 2.2.0
The BasicVariantGenerator is used per default if no search algorithm is ... tune from ray.tune.search.ax import AxSearch parameters = [ {"name": "x1", ...
Read more >
botorch - PyPI
Why BoTorch ? BoTorch. Provides a modular and easily extensible interface for composing Bayesian optimization primitives, including probabilistic models, ...
Read more >
Setup and Usage of BoTorch Models in Ax
BoTorchModel does not always require surrogate and acquisition specification. If instantiated without one or both components specified, defaults are selected ...
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