geneticengine.algorithms.gp.structure
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
Module Contents
- class geneticengine.algorithms.gp.structure.PopulationInitializer
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- abstractmethod initialize(problem, representation, random, target_size)
- Parameters:
problem (geneticengine.problems.Problem)
representation (geneticengine.representations.api.Representation)
target_size (int)
- Return type:
Iterator[geneticengine.solutions.individual.PhenotypicIndividual]
- class geneticengine.algorithms.gp.structure.GeneticStep
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- abstractmethod 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.PhenotypicIndividual])
target_size (int)
generation (int)
- Return type:
Iterator[geneticengine.solutions.individual.PhenotypicIndividual]
- apply(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.PhenotypicIndividual])
target_size (int)
generation (int)
- Return type:
Iterator[geneticengine.solutions.individual.PhenotypicIndividual]
- pre_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.PhenotypicIndividual])
target_size (int)
generation (int)
- Return type:
None
- post_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.PhenotypicIndividual])
target_size (int)
generation (int)
- Return type:
None
- __str__()