Skip to main content

Day 16 – Gradient Boosting and XGBoost

Updated 2 min readMarkdown

Hey everyone πŸ‘‹ Dhairya here,

After exploring Random Forest and AdaBoost yesterday, today I took a deeper dive into Gradient Boosting and XGBoost β€” algorithms that form the backbone of many Kaggle-winning solutions.

These models are all about learning from mistakes β€” each new model tries to correct the errors made by the previous ones.


πŸ”’ What I Learned Today

1. Gradient Boosting

  • Builds trees sequentially, where each new tree tries to reduce the residual errors of the previous ones.

  • Uses a gradient descent approach to minimize loss.

  • Can handle both regression and classification.

  • Scikit-Learn’s GradientBoostingClassifier makes it easy to implement.


2. XGBoost

  • Short for Extreme Gradient Boosting β€” an optimized version of Gradient Boosting.

  • Adds regularization and parallel computation for faster training.

  • Provides advanced control with parameters like:

    • learning_rate

    • max_depth

    • n_estimators

    • subsample


3. Comparing Gradient Boosting and XGBoost

FeatureGradient BoostingXGBoost
SpeedSlowerMuch faster
RegularizationNoneYes
ParallelizationLimitedYes
AccuracyGoodOften better

🌱 Reflections

These boosting algorithms made me realize how powerful error-focused learning can be. Each iteration improves over the last, creating a strong model from a collection of weaker ones.

XGBoost especially impressed me with its speed and flexibility β€” I can see why it’s a favorite in ML competitions!


πŸ’» Notebook

My Day 16 notebook is available here πŸ‘‰ GitHub Link – Day 16 Notebook


πŸ“š Resources

πŸŽ₯ YouTube

🌐 Websites


🎯 What’s Next?

For Day 17, I’ll start with Support Vector Machines (SVM) β€” another powerful algorithm for both linear and non-linear classification problems.

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.