diff = abs(results[i] - value)
error += diff
return error
fitnessFunction(['ABC', 'ABB', 'ABBC'], [1, 2, 3], 'ABC', [1, 1, 0])
How can I train a Genetic Programming algorithm onto a variable sequence of descriptors?