Class UniformCrossover
source code
Perform single point crossover between genomes at some defined
rates.
This performs a single crossover between two genomes at some defined
frequency. The location of the crossover is chosen randomly if the
crossover meets the probability to occur.
|
__init__(self,
crossover_prob=0.1,
uniform_prob=0.7)
Initialize to do uniform crossover at the specified probability and
frequency. |
source code
|
|
|
do_crossover(self,
org_1,
org_2)
Potentially do a crossover between the two organisms. |
source code
|
|