Bagging & random forests
Step 14 of 21 in Machine Learning · Build · Medium
Average many trees trained on bootstrap samples with random feature subsets. Averaging cuts variance.
Build it
Forest from your trees
Build a random forest from your CART; plot accuracy vs number of trees.
Done when: Beats a single tree; curve flattens.
Case study: Kinect body tracking
- Random forests classified every depth pixel into a body part in real time.
- Trained on huge numbers of synthetic rendered poses.
- Chosen for speed on console hardware, not just accuracy.
Resources
- Wikipedia: Random forest Article
- scikit-learn: decision trees Article
- XGBoost docs Article
- StatQuest Video
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map