What are the most critical hyperparameters to tune in a random forest?

Quick Overview

Asks which random forest hyperparameters are worth tuning and why. Tests how features per split, tree size limits and the number of trees affect variance and bias, how to choose the tree count, and how out-of-bag scores help during the search.

What are the most critical hyperparameters to tune in a random forest?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What are the most critical hyperparameters to tune in a random forest, and why do they matter? ```hint Two sources of error A forest's error depends on how strong each tree is and how correlated the trees are with each other. Ask which settings move each of those. ``` ### What a Strong Answer Covers - Which settings matter most and why, starting with the number of features tried at each split - How limits on tree size trade variance against bias, and when limiting growth helps - Why the number of trees behaves like a compute budget, and how to pick it - The secondary settings and a cheap way to validate during the search ### Follow-up Questions - Why does lowering `max_features` reduce the variance of the forest even though each tree gets weaker? - When would the out-of-bag score give a misleading estimate? - How would your tuning plan change for a dataset with 50 million rows? - How do the tuning priorities differ for a gradient-boosted tree model?

Overview: Asks which random forest hyperparameters are worth tuning and why. Tests how features per split, tree size limits and the number of trees affect variance and bias, how to choose the tree count, and how out-of-bag scores help during the search.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What are the most critical hyperparameters to tune in a random forest, and why do they matter?

What a Strong Answer Covers Guidance

  • Which settings matter most and why, starting with the number of features tried at each split
  • How limits on tree size trade variance against bias, and when limiting growth helps
  • Why the number of trees behaves like a compute budget, and how to pick it
  • The secondary settings and a cheap way to validate during the search

Follow-up Questions Guidance

  • Why does lowering max_features reduce the variance of the forest even though each tree gets weaker?
  • When would the out-of-bag score give a misleading estimate?
  • How would your tuning plan change for a dataset with 50 million rows?
  • How do the tuning priorities differ for a gradient-boosted tree model?