When would you use the OOB score instead of k-fold cross-validation?
Last updated
Use OOB for a fast, one-fit estimate on bagged models with i.i.d. data, e.g. quick tuning of
n_estimatorsormax_featureson large or scarce data.Use k-fold CV to compare against non-bagged models, when learned preprocessing would leak, for grouped/temporal data (
GroupKFold,TimeSeriesSplit), or when you need score variance.If you tune heavily on OOB, keep a final holdout because OOB becomes optimistic once used for selection.