Fitness Normalizer

class FitnessNormalizer[source]

Bases: object

Abstract base class for fitness normalizers.

A fitness normalizer takes an tuple of MoleculeRecord instances and yields new MoleculeRecord instances, with normalized fitness values. The primary benefit of a normalizer vs a FitnessCalculator is that a FitnessNormalizer has access to all members in the population when it is calculating the normalized fitness value, whereas a FitnessCalculator does not.



Normalize the fitness values in population.


Normalize the fitness values in population.


population (tuple of MoleculeRecord) – The molecules which need to have their fitness values normalized.


MoleculeRecord – A record with a normalized fitness value.