Skip to content

Commit 2ff0198

Browse files
committed
Update single_fidelity Ax generator for Ax v0.5.0
1 parent f0cdb38 commit 2ff0198

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

optimas/generators/ax/service/single_fidelity.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,13 @@ def _create_generation_steps(
134134
) -> List[GenerationStep]:
135135
"""Create generation steps for single-fidelity optimization."""
136136
# Select BO model.
137+
# Ax 0.5.0 detects if multi-objective.
137138
if self._fully_bayesian:
138-
if len(self.objectives) > 1:
139-
# Use a SAAS model with qNEHVI acquisition function.
140-
MODEL_CLASS = Models.FULLYBAYESIANMOO
141-
else:
142-
# Use a SAAS model with qNEI acquisition function.
143-
MODEL_CLASS = Models.FULLYBAYESIAN
139+
# Use a SAAS model with qNEHVI/qNEI acquisition function
140+
MODEL_CLASS = Models.SAASBO
144141
else:
145-
if len(self.objectives) > 1:
146-
# Use a model with qNEHVI acquisition function.
147-
MODEL_CLASS = Models.MOO
148-
else:
149-
# Use a model with qNEI acquisition function.
150-
MODEL_CLASS = Models.GPEI
142+
# Use a model with qNEHVI/qNEI acquisition function
143+
MODEL_CLASS = Models.BOTORCH_MODULAR
151144

152145
# Make generation strategy.
153146
steps = []

0 commit comments

Comments
 (0)