To tune or not to tune the number of trees in random forest?

By Philipp Probst, Anne-Laure Boulesteix. 2017

460 citations recorded by the source corpus.

The number of trees T in the random forest (RF) algorithm for supervised learning has to be set by the user. It is controversial whether T should simply be set to the largest computationally manageable value or whether a smaller T may in some cases be better. While the principle underlying bagging is that "more trees are better", in practice the classification error rate sometimes reaches a minimum before increasing again for increasing number of trees. The goal of this paper is four-fold: (i) providing theoretical results showing that the expected error rate may be a non-monotonous function of the number of trees and explaining under which circumstances this happens; (ii) providing theoretical results showing that such non-monotonous patterns cannot be observed for other performance measures such as the Brier score and the logarithmic loss (for classification) and the mean squared error (for regression); (iii) illustrating the extent of the problem through an application to a large number (n = 306) of datasets from the public database OpenML; (iv) finally arguing in favor of setting it to a computationally feasible large number, depending on convergence properties of the desired performance measure.

Subfields: Artificial Intelligence, Information Systems

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Hristos Tyralis
  2. Georgia A. Papacharalampous
  3. Philipp Probst
  4. Andreas Langousis
  5. Radwa El Shawi
  6. R. Couronné
  7. Anne-Laure Boulesteix
  8. Sherif Sakr

In Information Systems

  1. Hristos Tyralis
  2. Georgia A. Papacharalampous
  3. Andreas Langousis
  4. Nan Liu
  5. Anne-Laure Boulesteix
  6. Sherif Sakr
  7. Radwa El Shawi
  8. Marcus Eng Hock Ong

Citations in the corpus