Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 6, 2024
1 parent 513044f commit dc2d9aa
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions optimas/diagnostics/ax_model_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,14 @@ def _build_ax_client_from_dataframe(
# should work.
ax_client = AxClient(
generation_strategy=GenerationStrategy(
[GenerationStep(model=Models.GPEI if len(objectives) == 1 else Models.MOO, num_trials=-1)]
[
GenerationStep(
model=(
Models.GPEI if len(objectives) == 1 else Models.MOO
),
num_trials=-1,
)
]
),
verbose_logging=False,
)
Expand Down Expand Up @@ -248,8 +255,8 @@ def get_best_point(
best_point = best_arm.parameters
index = self.get_arm_index(best_arm.name)
else:
# AxClient.get_best_parameters seems to always return the best point
# from the observed values, independently of the value of `use_model_predictions`.
# AxClient.get_best_parameters seems to always return the best point
# from the observed values, independently of the value of `use_model_predictions`.
index, best_point, _ = self.ax_client.get_best_trial(
use_model_predictions=use_model_predictions
)
Expand Down

0 comments on commit dc2d9aa

Please sign in to comment.