I've been messing around with some of the starting parameters, namely numElite and numCopiesElite. Basically what they control are the copies of the most fittest genes at the end of the life cycle. When a new generation is about to be created, the program take an amount of the most fittest genes, numElite, and copies them into the new generation with numCopiesElite copies. This controls how much of an effect the previous generation had on the new one. If the numElite is 5 and there are a total of 10 sweepers in the generation, it would take the top five and (assuming numCopiesElite is 1) would copy them into the new generation.
This is necessary for obvious reasons so that the most fit genes actually continue over rather than dying out. It can also be a hazard, if the number is too high. If the previous generation was bad overall, the most fittest genes wouldn't necessarily be accomplishing the task; they would just be not, not accomplishing the task better than the others. By taking too many you lower the remaining spaces for mutated genes, meaning that the new generation wouldn't advance as fast, or might stop advancing all together.
No comments:
Post a Comment