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

Fittest tree issue #95

Open
asksak opened this issue Aug 28, 2022 · 4 comments
Open

Fittest tree issue #95

asksak opened this issue Aug 28, 2022 · 4 comments

Comments

@asksak
Copy link

asksak commented Aug 28, 2022

In GP, the fittest tree in a generation is, in one scenario, carried forward to the next generation.

With this in mind, the fittest tree in any generation cannot be lower than the inherited tree.

In my tests, I noticed that the fittest tree value drops, which does not conform to the "survival of the fittest" as described by Koza.

I wonder what you think?

@granawkins
Copy link
Collaborator

This is functioning correctly. For each tree in the next generation, 7 random trees are chosen from the current generation as 'potential parents'. In most cases, the fittest of the bunch gets chosen, but not always.

This is an interesting topic within GP usually called 'elitism'. Two approaches we could take are:

  1. Carrying forward the fittest (N=1 or 2) trees each generation, regardless
  2. Maintain a 'hall of fame' with the fittest trees across all generations

@kstaats
Copy link
Owner

kstaats commented Sep 26, 2022 via email

@granawkins
Copy link
Collaborator

granawkins commented Sep 27, 2022 via email

@kstaats
Copy link
Owner

kstaats commented Sep 29, 2022 via email

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

3 participants