CatBoost
CatBoost – gradient boosting on decision trees
A gradient boosting library from Yandex known for handling categorical features automatically and for symmetric trees that reduce overfitting.
Basic information
| Name | CatBoost |
|---|---|
| Full name | CatBoost – gradient boosting on decision trees |
| Category | Machine Learning Frameworks & Libraries |
| Developer | Yandex |
| Release year | 2017 |
| Official website | catboost.ai |
| GitHub repository | catboost/catboost |
| Official documentation | catboost.ai/docs |
| Package on PyPI | catboost |
| License | Apache-2.0 (PyPI license) |
| Project status | Active Had a release in the last 12 months |
| Latest version | 18 February 2026 (version 1.2.10) |
| Programming language | C++, Python, R |
| Operating systems | Not specified |
| Required Python version | Not specified |
| Difficulty level | Medium |
Data last checked: 21 November 2026 — source: PyPI JSON API (2026-11-21)
Overview
CatBoost handles categorical features with ordered target statistics that reduce target leakage, builds symmetric (oblivious) trees that are fast at prediction, and gives good results with default parameters in many cases.
Suited to tables with many categorical text columns, such as customer data and administrative records.
When to choose it? Choose it when categorical features are many and you want good results without much manual encoding.
Uses
Main uses
- Tables with many categorical features
- Classification, regression and ranking
Scientific fields
- Business
- Finance
- Medicine
Suitable project types
- Predicting customer churn
- Classifying patient records
Research applications
- Comparing categorical feature encoding methods
Technical features
A feature is shown as "Supported" only if it is documented in the library's official documentation; anything we have not verified is shown as "Not specified".
| CPU support | Supported |
|---|---|
| GPU support | Supported |
| CUDA compatibility | Supported |
| Distributed training or computing | Partial or through an add-onTraining on several GPUs and on Spark according to the documentation. |
| Automatic differentiation (Autodiff) | Not supported |
| Model deployment | SupportedExports to formats including ONNX, CoreML and C++ according to the documentation. |
| Pre-trained models | Not applicable |
| Supported data types | Numeric, categorical and text features |
| Integration with other libraries | Scikit-learn, Pandas, SHAP |
| Flexibility (editorial estimate) | Medium |
| Performance (editorial estimate) | High |
| Community (editorial estimate) | Large |
| Documentation quality (editorial estimate) | Good documentation |
Installation and running
pip install catboostInstalling inside a virtual environment (venv or conda) is recommended. If you need compatibility with a specific CUDA version or operating system, refer to the official documentation, because this information changes with every release.
Code examples
Examples marked "Run and tested" were actually run, with their output, test date and library versions recorded; the others need a GPU or model downloads, so they were not run in the test environment.
BeginnerCatBoost with categorical text columnsRun and tested
Goal: Passing categorical text columns to the model as they are.
import numpy as np, pandas as pd
from catboost import CatBoostClassifier
rng = np.random.default_rng(1)
n = 1000
df = pd.DataFrame({"device": rng.choice(["mobile", "desktop", "tablet"], n),
"country": rng.choice(["IQ", "EG", "SA", "MA"], n),
"minutes": rng.exponential(5, n).round(1)})
y = ((df.device == "mobile") & (df.minutes > 4)).astype(int)
model = CatBoostClassifier(iterations=200, depth=4, verbose=0, random_seed=0)
model.fit(df[:800], y[:800], cat_features=["device", "country"])
print(f"Test accuracy: {(model.predict(df[800:]) == y[800:]).mean():.3f}")
print("Feature importance:", {c: round(float(v), 1) for c, v in zip(df.columns, model.get_feature_importance())})
Code explanation
We list the categorical column names in cat_features, and CatBoost applies ordered target statistics encoding, which reduces target leakage.
Output recorded during testing
Test accuracy: 1.000
Feature importance: {'device': 42.4, 'country': 0.9, 'minutes': 56.7}This example was actually run and tested on 21 November 2026 on a CPU — catboost 1.2.10, pandas 3.1.1, python 3.13.18
Pros
- Built-in handling of categorical features
- Good results with default settings
- Fast prediction
Limitations
- CPU training can be slower than LightGBM
- A relatively large package
References and verification
- Package page on PyPI (source of the version, licence and release date) Checked directly
https://pypi.org/project/catboost/
Checked on: 21 November 2026 — version checked: 1.2.10 — reviewed by: the DLArabic team
- Official website A link the package officially declares on PyPI
https://catboost.ai
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Official documentation A link the package officially declares on PyPI
https://catboost.ai/docs/
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Official repository A link the package officially declares on PyPI
https://github.com/catboost/catboost
Checked on: 21 November 2026 — reviewed by: the DLArabic team
History of verified versions
| Version | Release date | Checked on |
|---|---|---|
| 1.2.10 | 18 February 2026 | 21 November 2026 |
Page information last reviewed: 21 November 2026. The description was written originally for the encyclopedia and is not copied from the official websites.
