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

Class SimpleFinisher

source code

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
Method Details [hide private]

__init__(self, num_schemas, min_generations=100)
(Constructor)

source code 

Initialize the finisher with its parameters.

Arguments:

o num_schemas -- the number of useful (positive fitness) schemas we want to generation

o min_generations -- The minimum number of generations to allow the GA to proceed.