Trees | Index | Help |
---|
Package Bio :: Package NeuralNetwork :: Package Gene :: Module Schema :: Class DifferentialSchemaFitness |
|
Method Summary | |
---|---|
Initialize with different sequences to evaluate | |
Calculate the fitness for a given schema. |
Method Details |
---|
__init__(self,
positive_seqs,
negative_seqs,
schema_evaluator)
|
calculate_fitness(self, genome)Calculate the fitness for a given schema. Fitness is specified by the number of occurances of the schema in the positive sequences minus the number of occurances in the negative examples. This fitness is then modified by multiplying by the length of the schema and then dividing by the number of ambiguous characters in the schema. This helps select for schema which are longer and have less redundancy. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jun 30 22:05:58 2005 | http://epydoc.sf.net |