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
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.
Downgrading to 0.1.4 can fixes the issue, thank you ZoranPandovski ^^
Thanks for flagging this. There were some hiccups in the tandem release we had planned for Ax & botorch, for now you can either use the latest Ax release with botorch 0.1.4 or the current master with botorh 0.2.0.
We're currently working on cutting a new Ax release compatible with 0.2.0 that should be out soon.
1) What do you mean by current master with botorch 0.2.0? Isn't the pip version already 0.2.0?
2) How exactly do we downgrade to 0.1.4? Should we just checkout a particular historical commit?
Also, we tried to install the bleeding edge version of Ax but got the error code of 128 during the installation process. Thank you.
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://[email protected]/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/[email protected]. Then you can install the Ax release as usual.
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!
I see to have a similar issue with the "cover page" example .
https://github.com/microprediction/tuneup/blob/master/tests/test_ax.py