Evaluation eval = new Evaluation(train);
eval.evaluateModel(filteredClassifier, test, output);
// Convert predictions to CSV
// Format: inst#, actual, predicted, error, probability, (ID)
String[] scores = new String[new Double(eval.numInstances()).intValue()];
double[] probabilities = new double[new Double(eval.numInstances()).intValue()];
for (String line : output.getBuffer().toString().split("\n"))
{
String[] linesplit = line.split("\\s+");