What are the standard default values for max_features in classification versus regression forests?

Quick Overview

Asks for the usual default number of features sampled per split in random forest classifiers and regressors. Tests whether you know the textbook rules, how scikit-learn's defaults differ from them, and how this setting trades tree strength against correlation between trees.

What are the standard default values for max_features in classification versus regression forests?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What are the standard default values for `max_features` in classification versus regression forests? ```hint Check two sources Recall the classic textbook recommendation, then check whether the library you use follows it for both model types. ``` ### What a Strong Answer Covers - The classic recommendations for classification and regression, written in terms of the number of features p. - How scikit-learn's defaults differ, especially for the regressor, and what that does to the model. - Why regression forests are usually given a larger feature subset. - What `max_features` trades off and how to tune it. ### Follow-up Questions - Why does sampling fewer features per split reduce the correlation between trees, and what does it cost each tree? - How would you tune `max_features`, and why is the out-of-bag score a reasonable signal? - With 1,000 features of which only 5 carry signal, what goes wrong with √p, and what would you try? - Does `max_features` apply per tree or per split, and why does that matter?

Overview: Asks for the usual default number of features sampled per split in random forest classifiers and regressors. Tests whether you know the textbook rules, how scikit-learn's defaults differ from them, and how this setting trades tree strength against correlation between trees.

Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What are the standard default values for max_features in classification versus regression forests?

What a Strong Answer Covers Guidance

  • The classic recommendations for classification and regression, written in terms of the number of features p.
  • How scikit-learn's defaults differ, especially for the regressor, and what that does to the model.
  • Why regression forests are usually given a larger feature subset.
  • What max_features trades off and how to tune it.

Follow-up Questions Guidance

  • Why does sampling fewer features per split reduce the correlation between trees, and what does it cost each tree?
  • How would you tune max_features , and why is the out-of-bag score a reasonable signal?
  • With 1,000 features of which only 5 carry signal, what goes wrong with √p, and what would you try?
  • Does max_features apply per tree or per split, and why does that matter?