stk.FitnessNormalizer
- class stk.FitnessNormalizer[source]
Bases:
Generic
[T
]Abstract base class for fitness normalizers.
A fitness normalizer takes a dictionary mapping
MoleculeRecord
instances to their fitness values and returns a new dictionary mapping them to their 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 some fitness values.