Random Forests are a type of Bagging technique.
Random Forests builds a number of trees on a bootstrapped sample. At each split in the tree, only a subset random sample of m predictors are considered.
By default for Classification we use and for Regression we use where is the number of predictors.
Method
- Create bootstrap samples.
- Fit a tree to each bootstrap sample while considering only a random subset of features for each split.
- Each decision tree is used to make a prediction.
- Aggregate all predictions.