geneticengine.algorithms.gp.operators.initializers

Module Contents

Classes

HalfAndHalfInitializer

Combines two initializers, one for each half of the population.

StandardInitializer

All individuals are created with full trees (maximum depth in all

class geneticengine.algorithms.gp.operators.initializers.HalfAndHalfInitializer(initializer1, initializer2)

Bases: geneticengine.algorithms.gp.structure.PopulationInitializer

Combines two initializers, one for each half of the population.

initialize(problem, representation, random, target_size, **kwargs)
Parameters:
Return type:

Iterator[geneticengine.solutions.individual.Individual]

class geneticengine.algorithms.gp.operators.initializers.StandardInitializer

Bases: geneticengine.algorithms.gp.structure.PopulationInitializer

All individuals are created with full trees (maximum depth in all branches).

initialize(problem, representation, random, target_size, **kwargs)
Parameters:
Return type:

Iterator[geneticengine.solutions.individual.Individual]