Generalized getFitnessVariance() to accept test set and classifacion as arguments