Day 15 β Ensemble Learning: Bagging, Random Forest & Boosting
Hey everyone π Dhairya here,
Iβm back after a long time took a break bacause of festive season and college exams and all i was unable to give time to learn and did not want to force things else i wont learn properly you know.
After learning about hyperparameter tuning yesterday, today I entered one of the most powerful areas in ML β Ensemble Learning. This is where multiple models work together to make predictions that are more accurate and robust than any single model.
π’ What I Learned Today
1. What is Ensemble Learning?
Combining multiple models (often weak learners) to improve performance.
Two main types:
Bagging (Bootstrap Aggregation) β reduces variance.
Boosting β reduces bias.
2. Bagging
Each model is trained on a random subset of the data (with replacement).
Final prediction is usually based on majority voting.
Example: Random Forest Classifier.
3. Random Forest
An ensemble of Decision Trees trained with bagging.
Each tree sees a slightly different dataset and feature set.
Usually performs better than a single decision tree.
4. Boosting (AdaBoost)
Sequentially trains weak learners, where each learner focuses more on previous errors.
Common boosting algorithms: AdaBoost, Gradient Boosting, XGBoost.
π± Reflections
Ensemble methods gave me a new appreciation for teamwork β each model may not be great individually, but together they shine.
The Random Forest accuracy boost was significant compared to a single tree. Boosting, on the other hand, showed how iterative learning can focus on mistakes and improve gradually.
π» Notebook
My Day 15 notebook is available here π GitHub Link β Day 15 Notebook
π Resources
π₯ YouTube
Corey Schafer β Ensemble Learning Overview
π Websites
π― Whatβs Next?
For Day 16, Iβll move into Gradient Boosting & XGBoost, the advanced boosting algorithms that dominate Kaggle competitions.
See you tomorrow π
β Dhairya
About the author
I'm a student, trying to find experience and develop skills, and I want to log that journey here. ππ
Comments
Join the discussionNo comments yet. Be the first to comment.