Day 16 β Gradient Boosting and XGBoost
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
GradientBoostingClassifiermakes 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_ratemax_depthn_estimatorssubsample
3. Comparing Gradient Boosting and XGBoost
| Feature | Gradient Boosting | XGBoost |
| Speed | Slower | Much faster |
| Regularization | None | Yes |
| Parallelization | Limited | Yes |
| Accuracy | Good | Often 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. ππ
Comments
Join the discussionNo comments yet. Be the first to comment.