Learn R Programming

xgboost (version 3.2.0.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

69,108

Version

3.2.0.1

License

Apache License (== 2.0) | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Jiaming Yuan

Last Published

February 10th, 2026

Functions in xgboost (3.2.0.1)

print.xgb.DMatrix

Print xgb.DMatrix
xgb.cb.cv.predict

Callback for returning cross-validation based predictions
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.attr

Accessors for serializable attributes of a model
xgb.get.num.boosted.rounds

Get number of boosting in a fitted booster
xgb.get.DMatrix.qcut

Get Quantile Cuts from DMatrix
xgb.gblinear.history

Extract gblinear coefficients history
xgb.dump

Dump an XGBoost model in text format.
print.xgb.cv.synchronous

Print xgb.cv result
xgb.cv

Cross Validation
xgb.create.features

Create new features from a previously learned model
print.xgb.Booster

Print xgb.Booster
xgb.DMatrix.hasinfo

Check whether DMatrix object has a field
predict.xgboost

Compute predictions from XGBoost model on new data
xgb.QuantileDMatrix.from_iterator

QuantileDMatrix from External Data
print.xgboost

Print info from XGBoost model
variable.names.xgb.Booster

Get Features Names from Booster
xgb.ExtMemDMatrix

DMatrix from External Data
xgb.DMatrix.save

Save xgb.DMatrix object to binary file
xgb.cb.save.model

Callback for saving a model file
xgb.copy.Booster

Deep-copies a Booster Object
xgb.cb.reset.parameters

Callback for resetting booster parameters at each iteration
xgb.config

Accessors for model parameters as JSON string
xgb.ggplot.importance

Plot feature importance
xgb.cb.early.stop

Callback to activate early stopping
xgb.get.DMatrix.num.non.missing

Get Number of Non-Missing Entries in DMatrix
agaricus.test

Test part from Mushroom Data Set
xgb.importance

Feature importance
xgb.cb.evaluation.log

Callback for logging the evaluation history
xgb.get.DMatrix.data

Get DMatrix Data
xgb.is.same.Booster

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

Load XGBoost model from binary file
xgb.load.raw

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

XGBoost Parameters
xgb.ggplot.deepness

Plot model tree depth
xgb.model.dt.tree

Parse model text dump
xgb.model.parameters<-

Accessors for model parameters
xgb.ggplot.shap.summary

SHAP summary plot
xgb.train

Fit XGBoost Model
xgb.plot.shap

SHAP dependence plots
xgb.slice.DMatrix

Slice DMatrix
xgb.set.config, xgb.get.config

Set and get global configuration
xgboost-options

XGBoost Options
xgb.plot.multi.trees

Project all trees on one tree
xgb.save.raw

Save XGBoost model to R's raw vector
xgb.slice.Booster

Slice Booster by Rounds
xgb.plot.tree

Plot boosted trees
xgb.save

Save XGBoost model to binary file
xgboost

Fit XGBoost Model