geneticengine.algorithms.gp.operators.initializers
Module Contents
Classes
Combines two initializers, one for each half of the population. |
|
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:
problem (geneticengine.problems.Problem)
representation (geneticengine.representations.api.Representation)
target_size (int)
- Return type:
- 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:
problem (geneticengine.problems.Problem)
representation (geneticengine.representations.api.Representation)
target_size (int)
- Return type: