Happy-Algorithms-League / hal-cgp

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

Local search should accept and return a single `Individual` #113

Closed jakobj closed 4 years ago

jakobj commented 4 years ago

I think from a user's perspective it makes more sense for all local search functions to accept and return a single individual. For example, the local search function updates parameters of the individual and finally returns it with updated parameters. All local search functions with otherwise need to implement the loop over the individuals, this would otherwise be hidden in the evolutionary algorithm.

Any strong opinion @mschmidt87? I'm assigning an early milestone since this changes the API for custom local searches.

mschmidt87 commented 4 years ago

I agree, I've stumbled upon this myself.