AI & ML Atlas
Machine LearningalgorithmInteractive simulation
CatBoost
Gradient boosting with built-in handling of categorical features.
The idea
CatBoost encodes categories using statistics computed only from earlier rows in a random order ("ordered target statistics"), which avoids leaking the label. It also uses symmetric (oblivious) trees, where one split rule applies to the whole level, giving fast predictions and a regularising effect.
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- data
- ensemble prediction
- residuals
Start with the simplest model: predict the average everywhere.
- round:
- 0
- error:
- 0.0545
1/25
Each round fits a tiny one-split tree to what the ensemble still gets wrong.
Step by step
- 1Shuffle the rows and encode categories with ordered target statistics.
- 2Compute gradients using ordered boosting to reduce prediction shift.
- 3Build a symmetric tree.
- 4Add it to the model and repeat.
Where it is used
Datasets with many categorical columns such as IDs, countries and products.
Watch out for
Training on very large data can be slower than LightGBM.