wagenaartje / neataptic

:rocket: Blazing fast neuro-evolution & backpropagation for the browser and Node.js

Home Page:https://wagenaartje.github.io/neataptic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mutate() must skip elitist genomes

egtzori opened this issue · comments

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