Description Usage Arguments Value
View source: R/chose_parents.R
A parents selection mechanism. The tournament selection splits the parents population in k non overlapping subgroups and takes the fittest individual in each group then takes n-k random subgroups (n the number of parents) and takes the fittest individual in each of these random subgroups
1 2 | tournament_selection(y, dataset, individuals, k = 4, n_var,
objective = "AIC")
|
y |
response variable |
dataset |
the dataframe containing the data |
k |
the number of subsequences that should not overlap |
n_var |
number of parents |
objective |
the objective function |
a list of n_var parents that are the fittest ones in each subgroup
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.