Description Usage Arguments Value Note See Also
evolve
subjects the given population to a number of rounds of evolution. During this process,
the population first reproduces via reproduce
, creating the next generation.
1 2 |
population |
A mutationtree population |
generations |
The number of generations to evolve (positive integer, default: 1) |
start |
Start generation number (default: 1) |
population_size |
The size of the resulting population. Since reproduction is done stochastically, the resulting population may not be this exact value. |
mutation_rate |
Rate at which mutations arise |
progress_bar |
Whether or not to show a progress bar (default: True) |
A modified mutationtree population
This function simply calls reproduce
,
mutate
, and then prune
on the population for the
specified number of cycles (generations).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.