public void testEvaluateClassifierPredictions()
throws Exception
{
MetadataManager metadata = new MetadataManager();
metadata.addFunctions(new MLFunctionFactory().listFunctions());
InternalAggregationFunction aggregation = metadata.getExactFunction(new Signature("evaluate_classifier_predictions", VARCHAR, BIGINT, BIGINT)).getAggregationFunction();
Accumulator accumulator = aggregation.createAggregation(Optional.<Integer>absent(), Optional.<Integer>absent(), 1.0, 0, 1);
accumulator.addInput(getPage());
Block block = accumulator.evaluateFinal();
String output = VARCHAR.getSlice(block, 0).toStringUtf8();