Skip to content

Commit

Permalink
Fix UnexpectedVerticesUpdate condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
KanaiYuma-aist committed Apr 12, 2024
1 parent 09eb794 commit d7fbbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiaccel/hpo/algorithms/nelder_mead_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ 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 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 d7fbbff

Please sign in to comment.