Skip to main content

Module random_forest

Module random_forest 

Source
Expand description

Decision trees and random forests.

See the book entry Decision trees and random forests.

Structs§

DecisionTree
A CART classification tree grown greedily by Gini impurity.
RandomForest
A random forest: many decorrelated decision trees, each grown on a bootstrap resample of the data and restricted to a random subset of features at every split (default √features), with predictions made by averaging the trees’ class probabilities. Averaging cancels the variance of the individual deep trees, so forests resist overfitting. The out-of-bag error (each tree scored on the samples it never saw) gives a free generalisation estimate.