Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NGO: in low dim and hard thresholding, use FastGA variant #426

Merged
merged 1 commit into from
Jan 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion nevergrad/optimization/optimizerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,10 @@ def __init__(self, instrumentation: Union[int, Instrumentation], budget: Optiona
self.has_discrete_not_softmax = "rderedDiscr" in str(self.instrumentation.variables)
if self.has_noise and self.has_discrete_not_softmax:
# noise and discrete: let us merge evolution and bandits.
self.optims = [DoubleFastGAOptimisticNoisyDiscreteOnePlusOne(self.instrumentation, budget, num_workers)]
if self.dimension < 60:
self.optims = [DoubleFastGADiscreteOnePlusOne(self.instrumentation, budget, num_workers)]
else:
self.optims = [CMA(self.instrumentation, budget, num_workers)]
else:
if self.has_noise and self.fully_continuous:
# This is the real of population control. FIXME: should we pair with a bandit ?
Expand Down