Skip to content

Commit

Permalink
migrated one shot optimizers to not use hypervolume (#1216)
Browse files Browse the repository at this point in the history
Co-authored-by: Theodore Clarke <theoajclarke@devfair0149.h2.fair>
  • Loading branch information
theoajc and Theodore Clarke authored Aug 23, 2021
1 parent 367107e commit a2ffda8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nevergrad/optimization/oneshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def __init__(
self.scale = scale
self.sampler = sampler
self._opposable_data: tp.Optional[np.ndarray] = None
self._no_hypervolume = True

def _internal_ask(self) -> tp.ArrayLike:
# pylint: disable=not-callable
Expand Down Expand Up @@ -274,6 +275,7 @@ def __init__(
self.rescaled = rescaled
self.recommendation_rule = recommendation_rule
# rescale to the bounds if both are provided
self._no_hypervolume = True
self._normalizer = p.helpers.Normalizer(self.parametrization)

@property
Expand Down

0 comments on commit a2ffda8

Please sign in to comment.