-
Notifications
You must be signed in to change notification settings - Fork 61
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
Comments
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:
|
Yes, many experiments in elitism have been conducted for a few decades.
I did my own with Karoo, early on. It seems counter intuitive, but yes,
if you select the most fit trees every time (bypassing the tournament
with a random selection), you can find the ultimate solution less
capable at solving the given problem.
I do not have the full history to this issue #95 and prior
conversations, and so I only ask immediately, Are you yet using the
Tournament with ~7% random selection? Or something else to choose the
parents?
…On 9/21/22 06:11, Grant wrote:
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
—
Reply to this email directly, view it on GitHub
<#95 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADUKG7WJMJNHCQKUPIKFA23V7MCPBANCNFSM573LBFZA>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yep, still using the same tournament/selection process. The default
population size is 100, the default tournament size is 7, so you end up
with 7% random selection by default. If you were to *just* increase
population to 200, you'd have 3.5% though, as the input for tournament size
is a number, not a percentage.
…On Tue, Sep 27, 2022 at 5:53 AM Kai Staats ***@***.***> wrote:
Yes, many experiments in elitism have been conducted for a few decades.
I did my own with Karoo, early on. It seems counter intuitive, but yes,
if you select the most fit trees every time (bypassing the tournament
with a random selection), you can find the ultimate solution less
capable at solving the given problem.
I do not have the full history to this issue #95 and prior
conversations, and so I only ask immediately, Are you yet using the
Tournament with ~7% random selection? Or something else to choose the
parents?
On 9/21/22 06:11, Grant wrote:
> 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
>
> —
> Reply to this email directly, view it on GitHub
> <#95 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ADUKG7WJMJNHCQKUPIKFA23V7MCPBANCNFSM573LBFZA
>.
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#95 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL7VFK5KGLP55URJFF3QTKTWAISORANCNFSM573LBFZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Ok. Good. But yes, the number of individuals selected should be a
percent, not a fixed number.
…On 9/26/22 18:21, Grant wrote:
Yep, still using the same tournament/selection process. The default
population size is 100, the default tournament size is 7, so you end up
with 7% random selection by default. If you were to *just* increase
population to 200, you'd have 3.5% though, as the input for tournament size
is a number, not a percentage.
On Tue, Sep 27, 2022 at 5:53 AM Kai Staats ***@***.***> wrote:
> Yes, many experiments in elitism have been conducted for a few decades.
> I did my own with Karoo, early on. It seems counter intuitive, but yes,
> if you select the most fit trees every time (bypassing the tournament
> with a random selection), you can find the ultimate solution less
> capable at solving the given problem.
>
> I do not have the full history to this issue #95 and prior
> conversations, and so I only ask immediately, Are you yet using the
> Tournament with ~7% random selection? Or something else to choose the
> parents?
>
> On 9/21/22 06:11, Grant wrote:
>> 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
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#95 (comment)>,
>
>> or unsubscribe
>> <
> https://github.com/notifications/unsubscribe-auth/ADUKG7WJMJNHCQKUPIKFA23V7MCPBANCNFSM573LBFZA
>> .
>> You are receiving this because you are subscribed to this thread.Message
>> ID: ***@***.***>
>>
>
> —
> Reply to this email directly, view it on GitHub
> <#95 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AL7VFK5KGLP55URJFF3QTKTWAISORANCNFSM573LBFZA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: