Standard selection is used to determine parent chromosomes fitness for recombination in the genetic algorithm for model optimization. Fitness is assessed based on AIC or an inputted fitness function (must be function to minimize). AIC is used in two ways: one through rank \frac{2\ r_{i}}{P(P+1)} and another through AIC weights. Weight takes the absolute fitness to determine probability of recombination while rank uses relative ranking of fitness of models.
Selection of chromosomes that contribute their genes to generation t+1 done by resampling the population with probability proportional to weight or rank, with replacement.
An alternative, using tournament selection, is available selection_tournament
1 | selection(pop_fitness, fitness, P, P_ix)
|
pop_fitness |
a vector indicating fitness of each chrosomosome in the current generation based on the evaluated fitness function. |
fitness |
a character indicating whether to use rank or weight when comparing model fitness. |
P |
Population size, corresponding to the number of genes or covariates on each chromosome or model considered for recombination. |
P_ix |
a sequence of integers, ending value P. References: Khalid Jebari, Mohammed Madiafi (2013) Selection Methods for Genetic Algorithms. https://www.researchgate.net/publication/259461147_Selection_Methods_for_Genetic_Algorithms. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.