Learn R Programming

xgboost (version 3.1.2.1)

Extreme Gradient Boosting

Description

Extreme Gradient Boosting, which is an efficient implementation of the gradient boosting framework from Chen & Guestrin (2016) . This package is its R interface. The package includes efficient linear model solver and tree learning algorithms. The package can automatically do parallel computation on a single machine which could be more than 10 times faster than existing gradient boosting packages. It supports various objective functions, including regression, classification and ranking. The package is made to be extensible, so that users are also allowed to define their own objectives easily.

Copy Link

Version

Install

install.packages('xgboost')

Monthly Downloads

84,436

Version

3.1.2.1

License

Apache License (== 2.0) | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Jiaming Yuan

Last Published

December 3rd, 2025

Functions in xgboost (3.1.2.1)

variable.names.xgb.Booster

Get Features Names from Booster
xgb.cb.early.stop

Callback to activate early stopping
xgb.cb.evaluation.log

Callback for logging the evaluation history
xgb.cb.print.evaluation

Callback for printing the result of evaluation
xgb.cb.gblinear.history

Callback for collecting coefficients history of a gblinear booster
xgb.config

Accessors for model parameters as JSON string
xgb.copy.Booster

Deep-copies a Booster Object
xgb.gblinear.history

Extract gblinear coefficients history
xgb.dump

Dump an XGBoost model in text format.
xgb.QuantileDMatrix.from_iterator

QuantileDMatrix from External Data
xgb.ExtMemDMatrix

DMatrix from External Data
xgb.get.DMatrix.num.non.missing

Get Number of Non-Missing Entries in DMatrix
xgb.get.DMatrix.data

Get DMatrix Data
xgb.cb.reset.parameters

Callback for resetting booster parameters at each iteration
xgb.cb.save.model

Callback for saving a model file
xgb.get.DMatrix.qcut

Get Quantile Cuts from DMatrix
xgb.load.raw

Load serialised XGBoost model from R's raw vector
xgb.load

Load XGBoost model from binary file
xgb.get.num.boosted.rounds

Get number of boosting in a fitted booster
xgb.plot.multi.trees

Project all trees on one tree
xgb.ggplot.importance

Plot feature importance
xgb.ggplot.deepness

Plot model tree depth
xgb.params

XGBoost Parameters
xgb.plot.tree

Plot boosted trees
xgb.create.features

Create new features from a previously learned model
xgb.cv

Cross Validation
xgb.attr

Accessors for serializable attributes of a model
xgb.cb.cv.predict

Callback for returning cross-validation based predictions
xgb.slice.Booster

Slice Booster by Rounds
xgb.save.raw

Save XGBoost model to R's raw vector
xgb.save

Save XGBoost model to binary file
xgb.model.dt.tree

Parse model text dump
xgb.is.same.Booster

Check if two boosters share the same C object
xgb.importance

Feature importance
xgb.plot.shap

SHAP dependence plots
xgb.model.parameters<-

Accessors for model parameters
xgboost-options

XGBoost Options
xgb.set.config, xgb.get.config

Set and get global configuration
xgb.ggplot.shap.summary

SHAP summary plot
xgboost

Fit XGBoost Model
xgb.slice.DMatrix

Slice DMatrix
xgb.train

Fit XGBoost Model
a-compatibility-note-for-saveRDS-save

Model Serialization and Compatibility
coef.xgb.Booster

Extract coefficients from linear booster
agaricus.test

Test part from Mushroom Data Set
dimnames.xgb.DMatrix

Handling of column names of xgb.DMatrix
dim.xgb.DMatrix

Dimensions of xgb.DMatrix
getinfo.xgb.Booster

Get or set information of xgb.DMatrix and xgb.Booster objects
predict.xgb.Booster

Predict method for XGBoost model
predict.xgboost

Compute predictions from XGBoost model on new data
print.xgb.Booster

Print xgb.Booster
xgb.DMatrix.save

Save xgb.DMatrix object to binary file
print.xgb.DMatrix

Print xgb.DMatrix
agaricus.train

Training part from Mushroom Data Set
print.xgb.cv.synchronous

Print xgb.cv result
xgb.DataIter

XGBoost Data Iterator
xgb.Callback

XGBoost Callback Constructor
xgb.DMatrix.hasinfo

Check whether DMatrix object has a field
xgb.DataBatch

Structure for Data Batches
xgb.DMatrix

Construct xgb.DMatrix object
print.xgboost

Print info from XGBoost model