wagenaartje / neataptic

:rocket: Blazing fast neuro-evolution & backpropagation for the browser and Node.js
https://wagenaartje.github.io/neataptic/
Other
1.18k stars 278 forks source link

skip elitist genomes when mutate()ing #161

Open egtzori opened 5 years ago

egtzori commented 5 years ago

PR for: mutate() must skip elitist genomes #160

1 row patch for mutate() to skip elitist genomes

FLYBYME commented 5 years ago

You already know the score from the elite so why run the same genome over and over again without any change?

egtzori commented 5 years ago

I tested it on small data and it gives better results for me. If i dont keep the best there is chance that the good children will mutate and bad one will be kept