CMA-ES / libcmaes

libcmaes is a multithreaded C++11 library with Python bindings for high performance blackbox stochastic optimization using the CMA-ES algorithm for Covariance Matrix Adaptation Evolution Strategy
Other
321 stars 78 forks source link

Repeatability for VD-CMA #105

Closed agrayver closed 9 years ago

agrayver commented 9 years ago

For testing purposes I use constant seed like that:

CMAParameters<> cmaparams(x0, sigma, -1, 12345, gp);

This gives reproducible results with aCMAES. However, when I switch to VD-CMA, even with the fixed seed specified, results change for every run.

Any idea?

beniz commented 9 years ago

Thanks for catching this. I can reproduce, so I will look at it and report here.

beniz commented 9 years ago

Here, fixed, due to the init of a complementary vector, which is now taking the seed into account. The fix in on 'dev' branch, you can either pull that branch or report the fix on the master's source code if you like, it is really a very tiny change in the code.

agrayver commented 9 years ago

Done. Thanks for quick patch.