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

Class SimpleFinisher


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.
Method Summary
  __init__(self, num_schemas, min_generations)
Initialize the finisher with its parameters.
  is_finished(self, organisms)
Determine when we can stop evolving the population.

Method Details

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

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.

is_finished(self, organisms)

Determine when we can stop evolving the population.

Generated by Epydoc 2.1 on Thu Mar 31 20:15:46 2005 http://epydoc.sf.net