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

tests/cma_multiplt.py usable with import #117

Closed nikohansen closed 9 years ago

nikohansen commented 9 years ago

I don't exactly understand why we see the commits from 2014 here, I just meant to push those from Feb 12, 2015.

beniz commented 9 years ago

Yes, this is because you may want to create a branch with your fixes on your repo and PR that branch. Otherwise github detects it as an addition to an existing PR. Basically a PR can be understood and defined by two endpoints, yours and that to which you'd like your code to be integrated.

I don't believe it matters too much just now for this one, and I'll try to use it as is.

beniz commented 9 years ago

FYI, I don't believe it matters too much as the plot looks fine but I get this error warning:

/usr/lib/pymodules/python2.7/matplotlib/scale.py:90: RuntimeWarning: invalid value encountered in less_equal
  mask = a <= 0.0
nikohansen commented 9 years ago

I believe this is unrelated to the changes in cma_multiplt.py.

EDIT: I believe it happens when trying to log-plot non-positive numbers.

beniz commented 9 years ago

OK, this has been merged.

beniz commented 9 years ago

Ah, just a thingy, when doing PR, it is best to do them against 'dev' branch. In this particular case it didn't matter though.