alenaksu / neatjs

NEAT (Neuro Evolution of Augmenting Topologies) implementation in JavaScript
https://alenaksu.github.io/neatjs/
GNU General Public License v3.0
22 stars 5 forks source link

Encourage more successful offspring #17

Closed dustinlacewell closed 3 years ago

dustinlacewell commented 3 years ago

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.

alenaksu commented 3 years ago

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

alenaksu commented 3 years ago

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