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

mutate() must skip elitist genomes #160

Open egtzori opened 5 years ago

egtzori commented 5 years ago

neataptic version: 1.4.7 As commented in the source (neat.js) // Elitist genomes should not be included but code on next line does for (var i = 0; i < this.population.length; i++) {

(includes elitist genomes to roll for mutation) Fixing this improves network performance for me.

I will create a pull request to patch this