How does the number of trees affect the reliability of the OOB estimate?
Last updated
More trees give each sample more OOB votes (about
0.37·B), reducing noise and seed dependence.Few trees leave some samples with no OOB prediction (probability about
0.632^B) and overstate error, since OOB scores a sub-forest about a third the size.Plot OOB error against
n_estimators(cheap withwarm_start=True) and choose a value on the plateau.
- https://metricgate.com/docs/random-forest-oob-error/
- https://mbrenndoerfer.com/writing/random-forest-ensemble-learning-bootstrap-sampling-feature-selection-classification-regression-guide/visualizing-random-forest
- https://medium.com/@jonghajeon1990/ml-13-out-of-bag-error-is-free-pessimistic-when-small-and-blind-to-copies-4ba5eef3283f