printClassificationsHeader(test, attributesToOutput, printDistribution, text);
// print predictions
int i = 0;
testSource.reset();
test = testSource.getStructure(test.classIndex());
while (testSource.hasMoreElements(test)) {
Instance inst = testSource.nextElement(test);
text.append(predictionText(classifier, inst, i,
attributesToOutput, printDistribution));
i++;