protected DecisionForest processOutput(TreeID[] keys, MapredOutput[] values, PredictionCallback callback) {
List<Node> trees = new ArrayList<Node>();
for (int index = 0; index < keys.length; index++) {
TreeID key = keys[index];
MapredOutput value = values[index];
trees.add(value.getTree());
int[] predictions = value.getPredictions();
for (int id = 0; id < predictions.length; id++) {
callback.prediction(key.treeId(), firstIds[key.partition()] + id,
predictions[id]);
}
}