Skip to main content

Day 15 – Ensemble Learning: Bagging, Random Forest & Boosting

Updated 2 min readMarkdown

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

🌐 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. πŸ˜€πŸ‘Š

No comments yet. Be the first to comment.