Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elitism not working as intended... #253

Open
nino192 opened this issue Sep 19, 2022 · 1 comment
Open

Elitism not working as intended... #253

nino192 opened this issue Sep 19, 2022 · 1 comment

Comments

@nino192
Copy link

nino192 commented Sep 19, 2022

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.

@markste-in
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants