geneticengine.algorithms.gp.gp
Module Contents
Classes
Represents the Genetic Programming algorithm. Defaults as given in A |
Functions
The default step in Genetic Programming. |
Attributes
- geneticengine.algorithms.gp.gp.logger
- geneticengine.algorithms.gp.gp.default_generic_programming_step()
The default step in Genetic Programming.
- class geneticengine.algorithms.gp.gp.GeneticProgramming(problem, budget, representation, random=None, tracker=None, population_size=100, population_initializer=None, step=None)
Bases:
geneticengine.algorithms.heuristics.HeuristicSearch
Represents the Genetic Programming algorithm. Defaults as given in A Field Guide to GP, p.17, by Poli and Mcphee:
- Parameters:
problem (Problem) – A SingleObjectiveProblem or a MultiObjectiveProblem problem.
budget (SearchBudget) – how long to search for
representation (Representation) – The individual representation used by the GP program.
random (RandomSource) – A RNG instance
recorder (ProgressTracker) – How to record the results of evaluations
population_size (int) – The population size (default = 200).
population_initializer (PopulationInitializer) – The method to generate new individuals.
step (GeneticStep) – The main structure of evolution.
tracker (geneticengine.evaluation.tracker.ProgressTracker | None)
- search()
- Return type: