You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nevergrad_cmaes: stopping and convergence criteria restart CMA-ES instead of ending the optimization #750
When CMA-ES meets one of its stopping criteria, nevergrad starts a new CMA-ES run from the start parameters. optimagic's wrapper keeps asking for points until stopping_maxfun is used up. These options are documented as ending the optimization, but they only trigger a restart:
Since #749 the result is the best point of all restarts and stopping_maxtime ends the optimization. The budget is still wasted, though. On a 3-dimensional sphere with 10,000 evaluations, CMA-ES converges after about 400 evaluations and is restarted about 24 times. The result also never reports that it converged. Every restart uses the same start parameters and population size, so the restarts are not a deliberate restart strategy such as IPOP either.
Possible fixes:
Call the cma package directly instead of nevergrad's ParametrizedCMA. CMA-ES's own criteria would then end the run, and restarts (e.g. IPOP) could become an explicit option.
Keep nevergrad and stop the loop when the internal CMA-ES has stopped. This needs nevergrad's private attribute _es.
Related: nevergrad_meta(optimizer="NoisyBandit") is designed for noisy functions. With 1000 evaluations it evaluates only 28 distinct points and spends the rest on re-evaluations. Should it stay among the choices?
Activity