Skip to content

Commit

Permalink
Fix code format.
Browse files Browse the repository at this point in the history
  • Loading branch information
KanaiYuma-aist committed Apr 12, 2024
1 parent d7fbbff commit 4f61ca0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aiaccel/hpo/algorithms/nelder_mead_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ def _wait_for_results(
enqueued_vertices, enqueued_values = self._collect_enqueued_results(enqueued_vertices, enqueued_values)

# check if enqueued vertices change ordering
if (len(self.values) == 0 and len(enqueued_values) > 0) or (len(self.values) > 0 and len(enqueued_values) > 0 and min(enqueued_values) < max(self.values)):
if (len(self.values) == 0 and len(enqueued_values) > 0) or (
len(self.values) > 0 and len(enqueued_values) > 0 and min(enqueued_values) < max(self.values)
):
new_vertices = self.vertices + vertices + enqueued_vertices
new_values = self.values + values + enqueued_values

Expand Down

0 comments on commit 4f61ca0

Please sign in to comment.