AI & ML Atlas
Machine LearningalgorithmInteractive simulation
Random Forest
Many decorrelated decision trees that vote.
The idea
Each tree is trained on a bootstrap sample of the rows and considers only a random subset of features at every split. Individual trees are noisy but their mistakes are different, so averaging (or voting) cancels much of the noise. This is bagging with extra randomness.
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- class 0
- class 1
A forest is many different trees voting. Each one sees a random resample of the data.
1/13
Background colour is the forest vote; stronger shade means more agreement.
Step by step
- 1Draw a bootstrap sample of the data for each tree.
- 2Grow a tree, trying only a random subset of features at each split.
- 3Repeat for many trees.
- 4Classify by majority vote (or average for regression).
Where it is used
A strong default for tabular data, with feature importances.
Watch out for
Large and slower to predict than one tree; less interpretable.