# XGBoost

Gradient\-boosting library with Python, R and JVM interfaces and qualified CPU/GPU deployment support\.

ID: Q56 · Revision: 40

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

Website: https://xgboost.readthedocs.io/



XGBoost is a gradient\-boosting library used for predictive modeling\. It offers native and language\-specific interfaces, including scikit\-learn\-compatible Python estimators, with CPU execution and supported CUDA acceleration\. Its role is a modeling component rather than an entire visual data\-analysis application\.[^home][^sklearn][^gpu]

## Interfaces and training

Python's estimator interface supports classification, regression and ranking and works with many scikit\-learn utilities\. It does not expose every native capability: some prediction workflows require the underlying Booster and DMatrix objects\. Early stopping requires an explicitly supplied evaluation set rather than an automatic split inside the estimator\. Evaluation design therefore remains part of the surrounding application\.[^sklearn]

## Categorical data

Categorical inputs use categorical feature declarations with the hist or approx tree methods\. Python dataframe support can retain category mappings and recode later inputs, subject to strict category\-name type consistency\. That facility should not be assumed for every language binding\. New categories absent from training still require an explicit policy; automatic recoding cannot establish what a previously unknown category means\.[^cats]

## Models and checkpoints

Native model saving preserves a stable representation of trees and the objective, with documented backward compatibility\. Pickled Python objects and R memory snapshots capture more internal state and lack that portability guarantee\. Custom objectives, metrics and callbacks are separate language\-dependent components\. A readable text, JSON or graph dump is intended for interpretation and should not be confused with a model file that can be loaded for prediction\.[^io]

## Hardware and deployment

GPU algorithms use NVIDIA CUDA, and trained models can move between CPU and GPU prediction environments\. Published Python wheels cover Windows, macOS and Linux, including documented ARM variants, but their accelerator capabilities differ\. macOS and Windows ARM wheels do not provide GPU algorithms; multi\-node GPU training is documented for Linux\. CPU\-only packages are also offered, so an installed XGBoost package does not by itself establish accelerator availability\.[^gpu][^install]

## Licensing and operational scope

XGBoost is distributed under Apache License 2\.0\. Its open\-source library license is separate from the cost and administration of any machines or distributed infrastructure chosen to run it\. For a deployment, the relevant compatibility unit includes the language binding, package variant and target hardware, as well as the saved model and feature\-processing code\.[^license][^install][^io]

## Substitution considerations

XGBoost can substitute for a boosted\-tree classifier or regressor from [scikit\-learn](/scikitlearn) while remaining part of a larger sklearn\-based pipeline\. This is a replacement of the training component, not an import route for an already fitted sklearn model or a substitute for every algorithm in that library\. Choosing between implementations requires evaluation on the intended data and deployment constraints; the documentation alone does not establish an accuracy or speed winner\.[^sklearn][^target][^io]

## Capabilities and substitutions

### Scikit\-learn\-compatible estimators — supported

Classification and regression estimators integrate with sklearn utilities; some native\-booster features need the lower\-level interface\.[^sklearn]

Use case: Training and deploying boosted\-tree classifiers and regressors · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Categorical prediction — limited

Python dataframe recoding has type restrictions; other bindings require consistent encoding and unseen categories need deliberate treatment\.[^cats]

Use case: Training and deploying boosted\-tree classifiers and regressors · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Portable model storage — supported

Native model saving has backward compatibility guarantees; this does not extend to pickled memory snapshots or custom functions\.[^io]

Use case: Training and deploying boosted\-tree classifiers and regressors · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### [Substitute for scikit\-learn](/scikitlearn) — limited

Can replace the boosted\-tree estimator portion of a scikit\-learn classification or regression workflow while retaining compatible utilities\. It does not replace sklearn's full preprocessing and algorithm collection, and models must be retrained\.[^sklearn][^target]

Use case: Training and deploying boosted\-tree classifiers and regressors · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

## References

[^home]: [XGBoost documentation](<https://xgboost.readthedocs.io/en/stable/>) — Gradient boosting and language interfaces (vendor; retrieved 2026-10-07T16:56:42Z)

[^sklearn]: [Scikit\-Learn estimator interface](<https://xgboost.readthedocs.io/en/stable/python/sklearn_estimator.html>) — Classification, regression, early stopping and native booster access (vendor; retrieved 2026-10-07T16:58:00Z)

[^cats]: [Categorical data](<https://xgboost.readthedocs.io/en/stable/tutorials/categorical.html>) — Supported tree methods, Python auto\-recoding and encoding consistency (vendor; retrieved 2026-10-07T16:56:52Z)

[^io]: [Model IO](<https://xgboost.readthedocs.io/en/stable/tutorials/saving_model.html>) — Stable models versus memory snapshots; custom callbacks and dumps (vendor; retrieved 2026-10-07T16:54:55Z)

[^gpu]: [GPU support](<https://xgboost.readthedocs.io/en/stable/gpu/>) — CUDA acceleration and CPU/GPU model interoperability (vendor; retrieved 2026-10-07T16:56:52Z)

[^install]: [Installation guide](<https://xgboost.readthedocs.io/en/stable/install.html>) — Wheel platforms and CPU/GPU variants (vendor; retrieved 2026-10-07T16:56:52Z)

[^license]: [XGBoost license](<https://github.com/dmlc/xgboost/blob/master/LICENSE>) — Apache License 2\.0 (vendor; retrieved 2026-10-07T16:58:00Z)

[^target]: [scikit\-learn ensemble models](<https://scikit-learn.org/stable/modules/ensemble.html>) — Gradient boosting classifier and regressor coverage (vendor; retrieved 2026-10-07T16:55:34Z)

Source revision: https://substitutefor.net/entities/Q56?revision=40
