Molecule Crosser

class MoleculeCrosser[source]

Bases: object

Abstract base class for molecule crossers.

Crossers take multiple molecules and recombine them to make new, offspring, molecules.

Examples

Subclass Implementation

You only need to implement cross(). The source code of any of the classes listed in crosser can serve as good examples.

Methods

cross(records)

Cross records.

cross(records)[source]

Cross records.

Parameters

records (iterable of MoleculeRecord) – The molecule records on which a crossover operation is performed.

Yields

CrossoverRecord – A record of a crossover operation.