Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
bpkroth committed Aug 19, 2024
1 parent 1a285d9 commit c8c813d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mlos_bench/mlos_bench/optimizers/mlos_core_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ def __init__(
# Make sure max_trials >= max_suggestions.
if "max_trials" not in self._config:
self._config["max_trials"] = self._max_suggestions
assert (
int(self._config["max_trials"]) >= self._max_suggestions
), f"max_trials {self._config.get('max_trials')} <= max_suggestions {self._max_suggestions}"
assert int(self._config["max_trials"]) >= self._max_suggestions, (
f"max_trials {self._config.get('max_trials')} "
f"<= max_suggestions{self._max_suggestions}"
)

if "run_name" not in self._config and self.experiment_id:
self._config["run_name"] = self.experiment_id
Expand Down

0 comments on commit c8c813d

Please sign in to comment.