# XGBoost

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

ID: Q56 · Revision: 1579

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]

## At a glance

- What does it offer? machine learning library[^home]

- What does it offer? gradient boosting[^home]

- What does it help people do? classify data[^sklearn]

- What does it help people do? regression analysis[^sklearn]

- What does it help people do? learning to rank[^sklearn]

- What does it work with? python[^sklearn]

- What does it work with? scikit learn[^sklearn]

- What does it work with? r language[^home]

- What does it work with? java[^home]

- What does it work with? apache spark[^home]

- What does it work with? dask[^home]

## 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]

XGBoost can substitute for [Weka](/weka) for supervised classification or regression when a boosted\-tree model suits the dataset\. Its scikit\-learn\-compatible Python interface can fit a code\-based training pipeline and work with familiar evaluation utilities\. XGBoost is a modeling library rather than a replacement for every Weka workbench function or learning algorithm\. Rebuild preprocessing, split data appropriately and validate a retrained model; Weka model files and predictions should not be assumed interchangeable\.[^sklearn][^xgb-model][^weka-primer]

## 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\.[^source-11]

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\.[^target][^source-11]

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

### [Substitute for Weka](/weka) — limited

Select a suitable learner, rebuild preprocessing and retrain with consistent validation\. Native model interchange, identical predictions and broader workbench features are not established\.[^weka-primer][^xgb-model][^source-13]

Use case: Supervised classification and regression on prepared datasets · Platforms: Unknown · Region: Unspecified

## 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-10T05:58:32Z)

[^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)

[^weka-primer]: [Weka machine\-learning primer](<https://waikato.github.io/weka-wiki/primer/>) — Classification, regression, typed datasets, preprocessing and evaluation (vendor; retrieved 2026-10-10T05:58:32Z)

[^xgb-model]: [XGBoost supervised learning](<https://xgboost.readthedocs.io/en/stable/tutorials/model.html>) — Training target predictions with classification and regression tree ensembles (vendor; retrieved 2026-10-10T05:58:32Z)

[^source-11]: [https://xgboost\.readthedocs\.io/en/stable/python/sklearn\_estimator\.html](<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)

[^source-12]: [https://xgboost\.readthedocs\.io/en/stable/python/sklearn\_estimator\.html](<https://xgboost.readthedocs.io/en/stable/python/sklearn_estimator.html>) — scikit\-learn\-compatible classification and regression, validation and early stopping (assessment; retrieved 2026-10-10T06:03:48.607Z)

[^source-13]: [https://xgboost\.readthedocs\.io/en/stable/python/sklearn\_estimator\.html](<https://xgboost.readthedocs.io/en/stable/python/sklearn_estimator.html>) — Python scikit\-learn\-compatible regression and classification; validation and early stopping (vendor; retrieved 2026-10-10T05:58:32Z)

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