NEAT-python library elitism not working as intended


This Content is from Stack Overflow. Question asked by nino dragičević

Im implementing NEAT algorithm in python via the NEAT-python library and I keep getting results that are not logical.
My elitism is set to 2, pop size is 30. species elitism is 1 and there is no stagnation.

Graph im getting has weird oscilations…
enter image description here

How is it possible for population’s best fitness to drop if I have elitism involved?

Also, I have noticed the oscilations happen only when 2 or more species is involved. Anyways, NEAT-python docs say that elitism takes the best from each species and just puts them into next generation, but that is clearly not working here…

Any ideas?


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?