Under what dataset conditions can a Random Forest still overfit?
Last updated
Fully grown trees on noisy targets memorize correlated noise that averaging cannot cancel. Fix with
min_samples_leaformax_depth.Risky data: small n with many irrelevant features, ID-like high-cardinality features, tiny minority classes, and leakage from duplicates, grouped or time-series rows.
Near-100% training accuracy is normal. Judge overfitting by the gap to OOB or properly grouped cross-validation scores.