Description Usage Arguments Details Value
Bernoulli sampling to form the initial generation of the Genetic Algorithm.
1 | initialization(C, P)
|
C |
chromosome length (number of predictor variables) |
This function produces initial generation given the chromosome length for Genetic Algorithm and the population size. The row of the generated boolean matrix represents the locus of a gene(variable), and the column of the matrix represents different members of the first generation.
A Bolean Matrix with dimension C by P where each column representing a chromosome, in which T marks that the gene(variable) as active and F as inactive.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.