A random forest model is a machine learning algorithm and a form of supervised learning. It is used most commonly in regression and classification problems. Here are the steps to build a random forest model:
- From a dataset with k records, select n.
- Construct individual decision trees for each of the n data values under consideration. A predicted result is obtained from each of them.
- A voting algorithm is applied to each of the results.
- The prediction with the most votes is assigned as the final result.