XGBoost: How It Works and Why It Is So Powerful for Machine Learning
When we start learning machine learning, we usually come across algorithms such as Linear Regression, Logistic Regression, Decision Trees, and Random Forest.
Then comes XGBoost.
XGBoost is one of the most popular machine learning algorithms for working with structured or tabular data. It is widely used for classification, regression, and ranking problems.
But what makes XGBoost different from a normal Decision Tree or Random Forest?
The answer lies in boosting.
In this blog, let's understand XGBoost step by step without making it unnecessarily complicated.
What Is XGBoost?
XGBoost stands for Extreme Gradient Boosting.
It is an implementation of the gradient boosting technique that builds multiple decision trees sequentially.
The important idea is that every new tree tries to improve the mistakes made by the previous trees.
Instead of creating one very powerful tree, XGBoost creates many smaller trees and combines their predictions.
A simple way to think about it is:
text
Tree 1 → makes some predictions
↓
Find the mistakes
↓
Tree 2 → focuses on improving those mistakes
↓
Find remaining mistakes
↓
Tree 3 → improves them again
↓
Final Prediction
Top comments (0)