Fitness Calculator

class FitnessCalculator[source]

Bases: object

Abstract base class for fitness value calculators.

Examples

Subclass Implementation

You only need to implement get_fitness_value(). The source cod of any of the classes listed in fitness_calculator, can serve as good examples.

Methods

get_fitness_value(molecule)

Return the fitness value of molecule.

get_fitness_value(molecule)[source]

Return the fitness value of molecule.

Parameters

molecule (ConstructedMolecule) – The molecule whose fitness value should be calculated.

Returns

The fitness value of molecule.

Return type

object