kgp.fitness / ParsimonyAwareMetric / fitness

fitness

fun fitness(cases: Cases, outputs: Outputs, programLength: Int): Double

Overrides Metric.fitness

Evaluates the fitness based on a set of cases and a set of outputs.

The raw fitness will be penalised with by a small factor based on the program's length:

fitness = function - (parsimonyCoefficient * programLength)