Fitness Normalizer
- class FitnessNormalizer[source]
Bases:
object
Abstract base class for fitness normalizers.
A fitness normalizer takes an
tuple
ofMoleculeRecord
instances and yields newMoleculeRecord
instances, with normalized fitness values. The primary benefit of a normalizer vs aFitnessCalculator
is that aFitnessNormalizer
has access to all members in the population when it is calculating the normalized fitness value, whereas aFitnessCalculator
does not.Methods
normalize
(population)Normalize the fitness values in population.
- normalize(population)[source]
Normalize the fitness values in population.
- Parameters:
population (
tuple
ofMoleculeRecord
) – The molecules which need to have their fitness values normalized.- Yields:
MoleculeRecord
– A record with a normalized fitness value.