{"schemaVersion":"1.0","record":{"label":"XGBoost","description":"Gradient-boosting library with Python, R and JVM interfaces and qualified CPU/GPU deployment support.","aliases":[],"kind":"software","website":"https://xgboost.readthedocs.io/","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.","license":"Open source under Apache License 2.0.","lifecycle":"active","example":false,"features":[{"name":"Scikit-learn-compatible estimators","status":"supported","detail":"Classification and regression estimators integrate with sklearn utilities; some native-booster features need the lower-level interface.","useCase":"Training and deploying boosted-tree classifiers and regressors","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://xgboost.readthedocs.io/en/stable/python/sklearn_estimator.html","locator":"Classification, regression, early stopping and native booster access","retrievedAt":"2026-10-07T16:58:00Z","kind":"vendor"}]},{"name":"Categorical prediction","status":"limited","detail":"Python dataframe recoding has type restrictions; other bindings require consistent encoding and unseen categories need deliberate treatment.","useCase":"Training and deploying boosted-tree classifiers and regressors","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://xgboost.readthedocs.io/en/stable/tutorials/categorical.html","locator":"Supported tree methods, Python auto-recoding and encoding consistency","retrievedAt":"2026-10-07T16:56:52Z","kind":"vendor"}]},{"name":"Portable model storage","status":"supported","detail":"Native model saving has backward compatibility guarantees; this does not extend to pickled memory snapshots or custom functions.","useCase":"Training and deploying boosted-tree classifiers and regressors","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://xgboost.readthedocs.io/en/stable/tutorials/saving_model.html","locator":"Stable models versus memory snapshots; custom callbacks and dumps","retrievedAt":"2026-10-07T16:54:55Z","kind":"vendor"}]}],"alternatives":[],"slug":"xgboost","draftAlternatives":[{"targetSlug":"scikit-learn","status":"limited","detail":"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.","useCase":"Training and deploying boosted-tree classifiers and regressors","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://xgboost.readthedocs.io/en/stable/python/sklearn_estimator.html","locator":"Classification, regression, early stopping and native booster access","retrievedAt":"2026-10-07T16:58:00Z","kind":"vendor"},{"url":"https://scikit-learn.org/stable/modules/ensemble.html","locator":"Gradient boosting classifier and regressor coverage","retrievedAt":"2026-10-07T16:55:34Z","kind":"vendor"}]}],"evidence":[{"url":"https://xgboost.readthedocs.io/en/stable/","locator":"Gradient boosting and language interfaces","retrievedAt":"2026-10-07T16:56:42Z","kind":"vendor"},{"url":"https://xgboost.readthedocs.io/en/stable/python/sklearn_estimator.html","locator":"Classification, regression, early stopping and native booster access","retrievedAt":"2026-10-07T16:58:00Z","kind":"vendor"},{"url":"https://xgboost.readthedocs.io/en/stable/gpu/","locator":"CUDA acceleration and CPU/GPU model interoperability","retrievedAt":"2026-10-07T16:56:52Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://xgboost.readthedocs.io/en/stable/","locator":"Gradient boosting and language interfaces","retrievedAt":"2026-10-07T16:56:42Z","id":"home","title":"XGBoost documentation","kind":"vendor"},{"url":"https://xgboost.readthedocs.io/en/stable/python/sklearn_estimator.html","locator":"Classification, regression, early stopping and native booster access","retrievedAt":"2026-10-07T16:58:00Z","id":"sklearn","title":"Scikit-Learn estimator interface","kind":"vendor"},{"url":"https://xgboost.readthedocs.io/en/stable/tutorials/categorical.html","locator":"Supported tree methods, Python auto-recoding and encoding consistency","retrievedAt":"2026-10-07T16:56:52Z","id":"cats","title":"Categorical data","kind":"vendor"},{"url":"https://xgboost.readthedocs.io/en/stable/tutorials/saving_model.html","locator":"Stable models versus memory snapshots; custom callbacks and dumps","retrievedAt":"2026-10-07T16:54:55Z","id":"io","title":"Model IO","kind":"vendor"},{"url":"https://xgboost.readthedocs.io/en/stable/gpu/","locator":"CUDA acceleration and CPU/GPU model interoperability","retrievedAt":"2026-10-07T16:56:52Z","id":"gpu","title":"GPU support","kind":"vendor"},{"url":"https://xgboost.readthedocs.io/en/stable/install.html","locator":"Wheel platforms and CPU/GPU variants","retrievedAt":"2026-10-07T16:56:52Z","id":"install","title":"Installation guide","kind":"vendor"},{"url":"https://github.com/dmlc/xgboost/blob/master/LICENSE","locator":"Apache License 2.0","retrievedAt":"2026-10-07T16:58:00Z","id":"license","title":"XGBoost license","kind":"vendor"},{"url":"https://scikit-learn.org/stable/modules/ensemble.html","locator":"Gradient boosting classifier and regressor coverage","retrievedAt":"2026-10-07T16:55:34Z","id":"target","title":"scikit-learn ensemble models","kind":"vendor"}],"overviewCitations":["home","sklearn","gpu"],"licenseCitations":["license"],"sections":[{"id":"integration","heading":"Interfaces and training","paragraphs":[{"id":"integration-detail","content":[{"text":"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."}],"citations":["sklearn"]}]},{"id":"categories","heading":"Categorical data","paragraphs":[{"id":"categories-detail","content":[{"text":"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."}],"citations":["cats"]}]},{"id":"storage","heading":"Models and checkpoints","paragraphs":[{"id":"storage-detail","content":[{"text":"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."}],"citations":["io"]}]},{"id":"devices","heading":"Hardware and deployment","paragraphs":[{"id":"devices-detail","content":[{"text":"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."}],"citations":["gpu","install"]}]},{"id":"licensing","heading":"Licensing and operational scope","paragraphs":[{"id":"licensing-detail","content":[{"text":"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."}],"citations":["license","install","io"]}]},{"id":"substitution","heading":"Substitution considerations","paragraphs":[{"id":"substitution-detail","content":[{"text":"XGBoost can substitute for a boosted-tree classifier or regressor from "},{"text":"scikit-learn","targetSlug":"scikit-learn"},{"text":" 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."}],"citations":["sklearn","target","io"]}]}]},"id":"Q56","revision":40,"updatedAt":"2026-10-08T23:27:31Z","sourceUrl":"https://substitutefor.net/entities/Q56?revision=40"}}