geneticengine.algorithms.gp.operators.elitism

Attributes

T

Classes

ElitismStep

Selects the best individuals from the population.

Functions

wrap(els, size)

Module Contents

geneticengine.algorithms.gp.operators.elitism.T
geneticengine.algorithms.gp.operators.elitism.wrap(els, size)
Parameters:
  • els (Iterator[T])

  • size (int)

Return type:

Iterator[T]

class geneticengine.algorithms.gp.operators.elitism.ElitismStep

Bases: geneticengine.algorithms.gp.structure.GeneticStep

Selects the best individuals from the population.

iterate(problem, evaluator, representation, random, population, target_size, generation)
Parameters:
Return type:

Iterator[geneticengine.solutions.individual.PhenotypicIndividual]