geneticengine.algorithms.gp.operators.initializers
Classes
Combines two initializers, one for each half of the population. |
|
All individuals are created with full trees (maximum depth in all |
Module Contents
- class geneticengine.algorithms.gp.operators.initializers.HalfAndHalfInitializer(initializer1, initializer2)
Bases:
geneticengine.algorithms.gp.structure.PopulationInitializerCombines two initializers, one for each half of the population.
- initializer1
- initializer2
- initialize(problem, representation, random, target_size, **kwargs)
- Parameters:
problem (geneticengine.problems.Problem)
representation (geneticengine.representations.api.Representation)
target_size (int)
- Return type:
Iterator[geneticengine.solutions.individual.PhenotypicIndividual]
- class geneticengine.algorithms.gp.operators.initializers.StandardInitializer
Bases:
geneticengine.algorithms.gp.structure.PopulationInitializerAll 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:
Iterator[geneticengine.solutions.individual.PhenotypicIndividual]