_selector

Module Contents

Classes

Selector

A Selector object that enables selection of individuals in an evolutionary process.

Attributes

TPopulation

KWArgs

TPopulation
KWArgs
class Selector

Bases: abc.ABC

Inheritance diagram of experimentation.evolution.abstract_elements._selector.Selector

A Selector object that enables selection of individuals in an evolutionary process.

abstract select(population: TPopulation, **kwargs: Any) tuple[TPopulation, KWArgs]

Select individuals from a population.

Parameters:
  • population – The population for selection.

  • kwargs – Possible metrics for selection.

Returns:

The selected subset of the population and additional kwargs.