File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
optimas/generators/ax/service Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -134,20 +134,13 @@ def _create_generation_steps(
134
134
) -> List [GenerationStep ]:
135
135
"""Create generation steps for single-fidelity optimization."""
136
136
# Select BO model.
137
+ # Ax 0.5.0 detects if multi-objective.
137
138
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
144
141
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
151
144
152
145
# Make generation strategy.
153
146
steps = []
You can’t perform that action at this time.
0 commit comments