You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With PyGAD 2.18.0 the keep_elitism=1 paramter was introduced. Apparently this only works when no crossover operation is selected. This is a strange behavior, because in my understanding Selection(e.g. Elitism) and Crossover build on each other. A normal (simplified) generation cycle should therefore look something like this:
Init
Evaluate fitness
Selection (e.g. steady-state, rank, elitism)
Crossover (e.g. one-point, uniform)
Mutation (e.g. random, swap)
-> 2.
To summarize, I would expect the elitism parameter to allow some of the best parents to pass unchanged into the next generation. This is not the case, and therefor the fitness value didn't converge.
Compare the lines 1348 - 1373 of the pygad.py file
The text was updated successfully, but these errors were encountered:
mxflknbrg
changed the title
keep_elitism only works when crossover_type==Nonekeep_elitism only works when crossover_type==NoneSep 19, 2022
With PyGAD 2.18.0 the
keep_elitism=1
paramter was introduced. Apparently this only works when no crossover operation is selected. This is a strange behavior, because in my understanding Selection(e.g. Elitism) and Crossover build on each other. A normal (simplified) generation cycle should therefore look something like this:To summarize, I would expect the elitism parameter to allow some of the best parents to pass unchanged into the next generation. This is not the case, and therefor the fitness value didn't converge.
Compare the lines 1348 - 1373 of the pygad.py file
The text was updated successfully, but these errors were encountered: