Skip to content

Commit

Permalink
Update aiaccel/hpo/samplers/nelder_mead_sampler.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yoshiaki Bando <[email protected]>
  • Loading branch information
KanaiYuma-aist and yoshipon authored Mar 4, 2024
1 parent e652b70 commit 4ff3480
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aiaccel/hpo/samplers/nelder_mead_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ def _generator(self) -> Generator[np.ndarray, None, None]:
self.vertices = self._rng.uniform(lows, highs, (self.dimension + 1, self.dimension))

yield from self.vertices
results = yield from self._waiting_for(len(self.vertices))

self.values = np.array(results)
self.values = np.asarray(yield from self._waiting_for(len(self.vertices)))

# main loop
shrink_requied = False
Expand Down

0 comments on commit 4ff3480

Please sign in to comment.