Package Bio :: Package NeuralNetwork :: Package Gene :: Module Schema :: Class SimpleFinisher
[hide private]
[frames] | no frames]

Class SimpleFinisher

source code

object --+

Determine when we are done evolving motifs.

This takes the very simple approach of halting evolution when the GA has proceeded for a specified number of generations and has a given number of unique schema with positive fitness.

Instance Methods [hide private]
__init__(self, num_schemas, min_generations=100)
Initialize the finisher with its parameters.
source code
is_finished(self, organisms)
Determine when we can stop evolving the population.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, num_schemas, min_generations=100)

source code 

Initialize the finisher with its parameters.

  • num_schemas -- the number of useful (positive fitness) schemas we want to generate.
  • min_generations -- The minimum number of generations to allow the GA to proceed.
Overrides: object.__init__