geneticengine.algorithms.gp.operators.crossover

Module Contents

Classes

GenericCrossoverStep

Changes the population by crossing individuals two-by-two together,

Attributes

logger

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:
Return type:

Iterator[geneticengine.solutions.individual.Individual]

crossover(random, individual1, individual2, representation)
Parameters: