Crossover is used in genetic algorithms for optimization when two parent chromosomes recombine to produce a child chromosome for the following generation. Crossover randomly picks a location on the chrosome to split the genetic alleles of both parents and then recombines the segments of genes to produce a new chromosome.
1 |
pop |
a nested list represented the parent population of models or chromosomes |
P_combn |
a list of all unique pairwise combinations of chromosome index (see |
C |
a value representing chromosome size (number of 'alleles'). Should be of class integer, corresponding to the number of columns of input matrix x. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.