CatBoost vs. XGBoost Accuracy
Note: the discussion below involves the Churn_Modelling.csv dataset (binary classification), the same as discussed in the XGBoost lecture for R.)
In case anyone is curious, I pitted CatBoost vs. XGBoost in R. Same dataset, using the same number of iterations, with RMSE as the loss function in both. Here are the Accuracies obtained after K-fold validation (with K=10) after N iterations:
And even at greater n, there is only an accuracy difference of 0.02.
One interesting this is that for this classification problem and dataset, XGBoost generated high accuracy after just a single iteration.
Right around 5 - 10 iterations, both algorithms produced very similar accuracies, and there doesn't seem to be much reason to go beyond this.
Various tests and discussions on the web suggest that CatBoost wins everything, but often the margins are small. And this isn't news.
2019 article:
https://medium.com/riskified-technology/xgboost-lightgbm-or-catboost-which-boosting-algorithm-should-i-use-e7fda7bb36bc
2024 August article:
https://neptune.ai/blog/when-to-choose-catboost-over-xgboost-or-lightgbm
So -- what about speed of execution? I'm not sure which sources to trust on this one. In the 2019 article, CatBoost was the slowest, whereas the article on netpune.ai has a chart where CatBoost completely obliterates LightGBM and XGBoost when learning on the Epsilon dataset, especially when run on GPUs.
I recently conducted a hands-on lab with AutoGluon, which (when functioning correctly) applies a variety of decision tree and gradient boosting algorithms to tackle the machine learning problem and ranks them based on predictive accuracy. While the performance and accuracy differences are not critical for learning purposes, they become crucial in production ML pipelines with large datasets. In such cases, both speed and accuracy are essential, especially when dealing with continuous, high-volume data streams like images/video, IoT data, or other real-time sources.