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.

Methods

normalize(population)

Normalize the fitness values in population.

normalize(population)[source]

Normalize the fitness values in population.

Parameters:

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

Yields:

MoleculeRecord – A record with a normalized fitness value.