@Override
public double calculateScore(final MachineLearningAlgorithm algo) {
int incorrectCount = 0;
int totalCount = 0;
final ClassificationAlgorithm ralgo = (ClassificationAlgorithm) algo;
for (final BasicData aTrainingData : this.trainingData) {
totalCount++;
final int output = ralgo.computeClassification(aTrainingData.getInput());
if (output != (int) aTrainingData.getIdeal()[0]) {
incorrectCount++;
}
}