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.
|