Description Usage Arguments Value Examples
Choose parents from generations propotional to their fitness
1 | propotional(models, random = TRUE)
|
models: |
dataframe with models (specified by the index of selected variables) and their respective fitness value |
random: |
if TURE, one parent will be selected randomly |
The selected parents(list of n lists, each list contains two parents)
1 2 3 4 5 | x <- mtcars[-1]
y <- unlist(mtcars[1])
initial_index <- initialize_parents(10,20)$index
rankedmodels <- ranked_models(initial_index,x,y)
propotional(rankedmodels,random = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.