CMA-ES / pycma

Python implementation of CMA-ES
Other
1.1k stars 178 forks source link

foffset in plotting #186

Closed nikohansen closed 11 months ago

nikohansen commented 2 years ago

The handling of negative values in the fitness-divers plot is done after the foffset is added. This works if the offset is small and serves to make the plot nicer close to zero. However, if the offset is added to use a better estimate of the optimal value, many values may become negative and will not be plotted in the semilog plot.

Resolution: introduce a second offset value that is added in the beginning before negative values are managed (the other is added right before plotting).

nikohansen commented 11 months ago

Implemented as fshift optional argument to the concerned plot functions in the next push.