Vector input = helper.encodeFeatureVector(file, actual, 0, overallCounts); //no leak type ensures this is a normal vector
Vector result = classifier.classifyFull(input);
int cat = result.maxValueIndex();
double score = result.maxValue();
double ll = classifier.logLikelihood(actual, input);
ClassifierResult cr = new ClassifierResult(newsGroups.values().get(cat), score, ll);
ra.addInstance(newsGroups.values().get(actual), cr);
}
output.printf("%s\n\n", ra.toString());
}