Description Usage Arguments Value
This function returns pairs of parents for breeding
1 | select_parents(fitness_values, mechanism, random = random, P, c)
|
fitness_values |
(vector P): fitness_value of each of the candidate of the current generation |
P |
(int): number of candidates per generation |
mechanism: |
user defined rank-based selection mechanism, must be one of c("replace_all","tournament", "partial_replace") |
random: |
A boolean value(T/F), "T" if choosing 1 parent selected proportional to fitness + 1 parent random selected and "F" if 2 parents selected proportional to to fitness |
generation |
gap: proportion of the generation to be replaced by offspring output: |
parents (matrix P x 2): each row is a pair of indices of parents
candidate(P x c): Each row is a candidate model for breeding
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.