Out-of-Bag (OOB)
A way to estimate the quality of a model on the objects that did not participate in its training. It relies on a property of the bootstrap sample: with replacement, some of the original objects do not get into it.
How the Estimate Is Obtained
Objects that did not get into the bootstrap sample of a particular model are called out-of-bag objects for that model.
- For each object, predictions are collected only from the models that did not see it during training.
- These predictions are compared with the true answers.
- The result is averaged over the objects — this gives the OOB score (Out-of-Bag Score).
About 37% of the original objects do not get into a particular bootstrap sample, so every model has material for such a check. At the same time, each object receives predictions not from all models of the ensemble, but only from some of them.
Why It Is Needed
The OOB estimate makes it possible to judge the quality of an ensemble without setting aside a separate validation set: the data stay in use, and the check runs on objects the model has not seen.
Limitations:
- in a small ensemble some objects may not collect enough predictions;
- the reliability of the estimate depends on the amount of data and the number of models;
- the OOB estimate does not fully replace an independent check on held-out data: it is useful as a quick reference and as a way to notice overfitting.