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