ModuleNotFoundError: No module named 'botorch.models.fidelity'
See original GitHub issueRun 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:
- Created 4 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top 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 >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
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!
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.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.