Skip to content

Commit

Permalink
Rename optimize_acqf_mixed.py to optimize_mixed.py
Browse files Browse the repository at this point in the history
Summary:
X-link: pytorch/botorch#2600

The name `optimize_acqf_mixed` conflicts with the optimizer with the same name, which is exposed in `botorch/optim/__init__.py`. This would lead to `botorch.optim.optimize_acqf_mixed` pointing to two different things.

Differential Revision: D65158159
  • Loading branch information
saitcakmak authored and facebook-github-bot committed Oct 29, 2024
1 parent c36e7e8 commit c72ded1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ax/models/torch/botorch_modular/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
optimize_acqf_discrete_local_search,
optimize_acqf_mixed,
)
from botorch.optim.optimize_acqf_mixed import optimize_acqf_mixed_alternating
from botorch.optim.optimize_mixed import optimize_acqf_mixed_alternating
from botorch.utils.constraints import get_outcome_constraint_transforms
from pyre_extensions import none_throws
from torch import Tensor
Expand Down
2 changes: 1 addition & 1 deletion ax/models/torch/tests/test_acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
optimize_acqf_discrete,
optimize_acqf_mixed,
)
from botorch.optim.optimize_acqf_mixed import optimize_acqf_mixed_alternating
from botorch.optim.optimize_mixed import optimize_acqf_mixed_alternating
from botorch.utils.constraints import get_outcome_constraint_transforms
from botorch.utils.datasets import SupervisedDataset
from botorch.utils.testing import MockPosterior
Expand Down

0 comments on commit c72ded1

Please sign in to comment.