Happy-Algorithms-League / hal-cgp

Cartesian genetic programming (CGP) in pure Python.
GNU General Public License v3.0
28 stars 10 forks source link

Make sure caching decorator's key from numpy evaluation contains not only nan #350

Closed jakobj closed 2 years ago

jakobj commented 2 years ago

Currently, two functions which return all nan values from the numpy evaluation are assigned identical keys without emitting any warning.

This should be fixed, e.g., by raising an exception if this is detected.