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 2142dce commit 02199f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions optimas/diagnostics/ax_model_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,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
4 changes: 2 additions & 2 deletions optimas/diagnostics/exploration_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,8 +914,8 @@ def get_best_evaluations(
elif isinstance(objective, str):
objective = self._get_objective(objective)
return self.history.sort_values(
by=objective.name, ascending=objective.minimize
).iloc[:top]
by=objective.name, ascending=objective.minimize
).iloc[:top]

def print_best_evaluations(
self,
Expand Down

0 comments on commit 02199f6

Please sign in to comment.