Table of Contents

Class: MostCountSchemaFitness Bio/NeuralNetwork/Gene/Schema.py

Calculate a fitness giving weight to schemas that match many times.

This fitness function tries to maximize schemas which are found many times in a group of sequences.

Methods   
__init__
calculate_fitness
  __init__ 
__init__ (
        self,
        seq_records,
        schema_evaluator,
        )

Initialize with sequences to evaluate.

Arguments:

  • seq_records -- A set of SeqRecord objects which we use to calculate the fitness.

  • schema_evaluator - An Schema class which can be used to evaluate find motif matches in sequences.

  calculate_fitness 
calculate_fitness ( self,  genome )

Calculate the fitness of a genome based on schema matches.

This bases the fitness of a genome completely on the number of times it matches in the set of seq_records. Matching more times gives a better fitness


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:11 2002 by HappyDoc version 2.0.1