Description Usage Arguments Value Author(s) See Also Examples
This function splits the chromosome population in two parts allowing the best chromosomes to be preserved from the "evolutionary" steps: Selection, Crossover and Mutation.
1 | GARS_Elitism(chr.pop, fitn.values, n.elit = 10)
|
chr.pop |
A matrix or a data.frame representing the chromosomes population: each column is a chromosome and each element corresponds to the feature position in the data matrix |
fitn.values |
A numeric vector where each element corresponds to the fitness score of each chromosome in 'chr.pop' |
n.elit |
The number of best chromosomes to be selected by elitism. This number must be even. Default is 10 |
A list containing:
The population of best chromosomes selected by elitism.
The population of chromosomes not selected by elitism.
The fitness values of best chromosomes selected by elitism.
The fitness values of chromosomes not selected by elitism.
Mattia Chiesa, Luca Piacentini
GARS_Mutation
,
GARS_Selection
,
GARS_Crossover
,
GARS_FitFun
,
1 2 3 | data(GARS_popul)
data(GARS_Fitness_score)
pop_list <- GARS_Elitism(GARS_popul, GARS_Fitness_score)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.