# CatBoost

Decision\-tree gradient\-boosting library with categorical feature processing and qualified multi\-format model export\.

ID: Q279 · Revision: 264

Type: software · License: Open source under Apache License 2\.0\.[^repo] · Status: active

Website: https://catboost.ai/



CatBoost is an open\-source gradient\-boosting library for decision trees, used for classification, regression and ranking\. It supports numerical and categorical inputs as well as documented text and embedding feature workflows, with Python, R and command\-line training interfaces\.[^repo][^cats]

## Modeling workflow

CatBoost provides training, cross\-validation, model analysis and prediction components rather than a standalone visual analytics workbench\. Its categorical processing derives numeric features from categories and combinations; it can also use internal one\-hot encoding for sufficiently small category sets\. The developer documentation advises against externally one\-hot\-encoding all categorical inputs as a default preparation step\.[^repo][^cats]

## Categorical processing conditions

Category handling is not identical across every training mode\. Internal one\-hot thresholds depend on the objective and device, and CPU pairwise\-scoring modes do not support that mechanism\. Some categorical statistics require target data\. When such data is unavailable, the documented GPU path relies on one\-hot features while the CPU path ignores categorical features\. A migration must therefore check the selected objective and data, not just the presence of a categorical\-column option\.[^cats]

## Prediction schema

Prediction inputs must contain the features used by the model\. Ordinarily their column order must match training, but named features supplied at both stages can instead be matched by name in supported inputs such as Pool or dataframe objects\. Retaining names and feature definitions is therefore useful when preparing an application interface or moving data between table\-processing systems\.[^predict]

## Model storage and export

CBM is the native binary format\. Other outputs include JSON, standalone Python or C\+\+, CoreML, ONNX\-ML and PMML, but those routes are conditional\. The save\_model reference requires a training Pool for categorical models exported as C\+\+, Python or usable JSON\. ONNX and CoreML exclude categorical features; PMML categorical export requires one\-hot treatment during training\. These requirements can affect training choices before a model is ready for deployment\.[^save]

## Inference interoperability

An ONNX\-ML export is an inference artifact for an ONNX runtime, not a model that CatBoost itself can apply again\. Its documented numeric\-feature restriction means that a model's successful training does not establish that this deployment route is available\. Model storage and deployment\-format selection should therefore be treated as separate decisions, particularly for mixed categorical and numeric datasets\.[^onnx]

## Availability and licensing

The library uses Apache License 2\.0\. Python installation requires 64\-bit CPython, with documented wheels for Windows, Linux and macOS on specified architectures\. Linux and Windows releases include CUDA support, whereas macOS wheels do not\. GPU training is nondeterministic because floating\-point summations may occur in different orders; CPU and GPU parameters also differ in some cases\.[^repo][^install][^wheels][^gpu]

## Substitution considerations

CatBoost is a candidate substitute for [LightGBM](/lightgbm) in tabular classification or regression\. The substitution involves training a new model, adapting feature handling and checking the intended export route\. Shared gradient\-boosting terminology does not imply compatible artifacts or equal predictions\. No comparative speed, accuracy or hands\-on compatibility result is claimed here\.[^repo][^target][^save]

## Capabilities and substitutions

### Categorical feature processing — supported

Builds internal numeric features from categorical inputs; one\-hot behavior depends on training mode and available target data\.[^cats]

Use case: Boosted\-tree classification and regression with mixed feature types · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Model export — limited

Native CBM and additional exports are available; ONNX/CoreML exclude categorical features and some exports require the training Pool\.[^save][^onnx]

Use case: Boosted\-tree classification and regression with mixed feature types · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### GPU training — limited

Released Linux/Windows packages support CUDA, but GPU training is nondeterministic and some parameters differ from CPU execution\.[^install][^gpu]

Use case: Boosted\-tree classification and regression with mixed feature types · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### [Substitute for LightGBM](/lightgbm) — limited

Can replace LightGBM for boosted\-tree classification or regression when retraining and revising categorical preprocessing are acceptable\. Export support, accelerator availability and validation results require separate evaluation\.[^repo][^cats][^save][^target]

Use case: Boosted\-tree classification and regression with mixed feature types · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

## References

[^repo]: [CatBoost repository](<https://github.com/catboost/catboost>) — Library purpose, interfaces and Apache 2\.0 licensing (vendor; retrieved 2026-10-07T17:00:35Z)

[^cats]: [Categorical features](<https://catboost.ai/docs/en/features/categorical-features>) — Internal transformations, one\-hot thresholds and CPU/GPU conditions (vendor; retrieved 2026-10-07T17:00:00Z)

[^predict]: [Python prediction](<https://catboost.ai/docs/en/concepts/python-reference_catboost_predict>) — Feature order and name matching (vendor; retrieved 2026-10-07T17:00:21Z)

[^save]: [Python save\_model](<https://catboost.ai/docs/en/concepts/python-reference_catboost_save_model>) — CBM, format restrictions and training Pool requirement (vendor; retrieved 2026-10-07T17:00:00Z)

[^onnx]: [ONNX\-ML export](<https://catboost.ai/docs/en/concepts/apply-onnx-ml>) — Numeric\-only export and inability to apply exported ONNX in CatBoost (vendor; retrieved 2026-10-07T16:51:35Z)

[^install]: [Python package installation](<https://catboost.ai/docs/en/concepts/python-installation>) — 64\-bit CPython and GPU/custom\-function prerequisites (vendor; retrieved 2026-10-07T17:00:00Z)

[^wheels]: [Python wheels](<https://catboost.ai/docs/en/installation/python-installation-method-pip-install>) — Platform and architecture matrix (vendor; retrieved 2026-10-07T17:00:35Z)

[^gpu]: [Training on GPU](<https://catboost.ai/docs/en/features/training-on-gpu>) — GPU nondeterminism and device\-specific parameters (vendor; retrieved 2026-10-07T17:00:21Z)

[^target]: [LightGBM features](<https://lightgbm.readthedocs.io/en/stable/Features.html>) — Classification, regression and categorical trees (vendor; retrieved 2026-10-07T16:58:47Z)

Source revision: https://substitutefor.net/entities/Q279?revision=264
