XGBoost Gradient-boosting library with Python, R and JVM interfaces and qualified CPU/GPU deployment support.
Overview 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.[1] [2] [5]
Contents 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.[2]
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.[3]
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.[4]
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.[5] [6]
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.[4] [6] [7]
Substitution considerations XGBoost can substitute for a boosted-tree classifier or regressor from scikit-learn 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.[2] [4] [8]
References XGBoost documentation Gradient boosting and language interfaces
vendor · retrieved 2026-10-07 Scikit-Learn estimator interface Classification, regression, early stopping and native booster access
vendor · retrieved 2026-10-07 Categorical data Supported tree methods, Python auto-recoding and encoding consistency
vendor · retrieved 2026-10-07 Model IO Stable models versus memory snapshots; custom callbacks and dumps
vendor · retrieved 2026-10-07 GPU support CUDA acceleration and CPU/GPU model interoperability
vendor · retrieved 2026-10-07 Installation guide Wheel platforms and CPU/GPU variants
vendor · retrieved 2026-10-07 XGBoost license Apache License 2.0
vendor · retrieved 2026-10-07 scikit-learn ensemble models Gradient boosting classifier and regressor coverage
vendor · retrieved 2026-10-07 Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.