alenaksu / neatjs

NEAT (Neuro Evolution of Augmenting Topologies) implementation in JavaScript

Home Page:https://alenaksu.github.io/neatjs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Encourage more successful offspring

dustinlacewell opened this issue · comments

How can I tune the configuration so that when there are successful individuals, a higher percentage of the next generation will behave similarly to the best performing ancestors?

It seems like no matter what I do, a good percentage of the offspring are always quite divergent from the most successful from the last generation.

I think you can tune the survivalThreshold option.
On every epoch organisms of each species are sorted by their fitness and only the fittest will be selected for reproduction (survivalThreshold * population size).

So, a smaller threshold should let you get the best performing of each species

hey @dustinlacewell, did my answer help? If so I'd close the issue