neat-python icon indicating copy to clipboard operation
neat-python copied to clipboard

Elitism not working as intended...

Open nino192 opened this issue 3 years ago • 1 comments

My elitism is set to 2, pop size is 30. species elitism is 1 and there is no stagnation. Im keep getting weird oscilations in max fitness of a generation. If elitism is present, shouldnt it mean that 2 of the most fit individuals are directly transferred into next generation? That would mean that there is no chance of lowering the maximum fitness... Also, I've noticed the oscilations occur in generations when new species is created.

Here is an example graph using the neat-visualize:

1 Im fairly new to the library so any explanation would be appreciated.

nino192 avatar Sep 19 '22 19:09 nino192

Is your environment always the same on every run or is slightly randomised? It could be that your best species just "had a bad day" on particular environment config (like it stumbled over a stone :D )?

Can you give us more details?

markste-in avatar Oct 03 '22 02:10 markste-in