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

Last updated 5 November 2026

  • Classic defaults (Breiman, R randomForest): √p features per split for classification and p/3 for regression (p: number of features).

  • scikit-learn: classifier uses max_features="sqrt", but the regressor uses max_features=1.0 (all features), making it plain bagged trees by default.

  • Regression uses more features because its trees lose strength faster when strong predictors are hidden. Treat defaults as starting points to tune via OOB.

  • https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html
  • https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html
  • https://inria.github.io/scikit-learn-mooc/python_scripts/ensemble_random_forest.html
All Random Forests interview questions