Skip to content

Commit b0e6ea4

Browse files
sdaultonmeta-codesync[bot]
authored andcommitted
Remove fully_bayesian re-exports from botorch.models.__init__ (#5190)
Summary: X-link: meta-pytorch/botorch#3291 Pull Request resolved: #5190 Reviewed By: saitcakmak Differential Revision: D102367257 fbshipit-source-id: 071cd730f4225d0a23bee891378d1b30febab693
1 parent f0707ea commit b0e6ea4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

ax/generators/torch/tests/test_surrogate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@
5151
from ax.utils.testing.torch_stubs import get_torch_test_data
5252
from ax.utils.testing.utils import generic_equals
5353
from botorch.exceptions.errors import ModelFittingError
54-
from botorch.models import ModelListGP, SaasFullyBayesianSingleTaskGP, SingleTaskGP
54+
from botorch.models import ModelListGP, SingleTaskGP
5555
from botorch.models.deterministic import GenericDeterministicModel
56+
from botorch.models.fully_bayesian import SaasFullyBayesianSingleTaskGP
5657
from botorch.models.fully_bayesian_multitask import SaasFullyBayesianMultiTaskGP
5758
from botorch.models.gp_regression_mixed import MixedSingleTaskGP
5859
from botorch.models.model import Model, ModelList # noqa: F401 -- used in Mocks.

ax/utils/testing/tests/test_mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_fully_bayesian_mocks(self) -> None:
5656
"kernel_tausq": jnp.ones(num_mcmc_samples),
5757
"_kernel_inv_length_sq": jnp.ones((num_mcmc_samples, dim)),
5858
}
59-
with patch("botorch.fit.MCMC") as mock_mcmc:
59+
with patch("numpyro.infer.MCMC") as mock_mcmc:
6060
mock_mcmc.return_value.get_samples.return_value = mock_samples
6161
with mock_botorch_optimize_context_manager():
6262
Generators.SAASBO(experiment=experiment, data=experiment.lookup_data())

0 commit comments

Comments
 (0)