Child chromosomes produced using crossover_parents
passed to this function will be modified using concept of genetic mutation, whereby a polymorphisms are produced according to a probably of mutatgenesis. Here, the default mutation rate is proportional to the size of the popluation, P, and number of chromosomes, C, \frac{1}{P * C^{0.5}}. User's can specify the mutation rate in select
.
1 | mutate_child(mutation_rate, child, P, C)
|
mutation_rate |
an optional numeric value between 0 and 1 indicating mutation rate. |
child |
a vector containing the chromosome of child produced by crossover. |
P |
an integer indicating the number of parent chromosomes. |
C |
an integer indicating the number of predictor variables or genes. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.