What is n_estimators in Random Forest?
Updated May 17, 2026
Short answer
n_estimators defines the number of trees in the forest.
Deep explanation
More trees generally improve performance but increase computation cost. The model stabilizes after a certain number of trees.
Real-world example
Used in e-commerce recommendation ranking models.
Common mistakes
- Assuming infinite trees always improve accuracy.
Follow-up questions
- How to choose n_estimators?
- Does more trees reduce bias?