geneticengine.algorithms.gp.operators.crossover
Module Contents
Classes
Changes the population by crossing individuals two-by-two together, |
Attributes
- geneticengine.algorithms.gp.operators.crossover.logger
- class geneticengine.algorithms.gp.operators.crossover.GenericCrossoverStep(probability=1)
Bases:
geneticengine.algorithms.gp.structure.GeneticStep
Changes the population by crossing individuals two-by-two together, according to a given probability.
- Parameters:
probability (float)
- iterate(problem, evaluator, representation, random, population, target_size, generation)
- Parameters:
problem (geneticengine.problems.Problem)
evaluator (geneticengine.evaluation.Evaluator)
representation (geneticengine.representations.api.Representation)
population (Iterator[geneticengine.solutions.individual.Individual])
target_size (int)
generation (int)
- Return type:
- crossover(random, individual1, individual2, representation)
- Parameters:
individual1 (geneticengine.solutions.individual.Individual)
individual2 (geneticengine.solutions.individual.Individual)
representation (geneticengine.representations.api.Representation)