// predict the label for the out-of-bag elements
if (callback != null) {
log.debug("Oob error estimation");
for (int index = 0; index < data.size(); index++) {
if (sampled[index] == false) {
int prediction = tree.classify(data.get(index));
callback.prediction(treeId, index, prediction);
}
}
}