Learn R Programming

xgboost (version 3.1.2.1)

print.xgb.DMatrix: Print xgb.DMatrix

Description

Print information about xgb.DMatrix. Currently it displays dimensions and presence of info-fields and colnames.

Usage

# S3 method for xgb.DMatrix
print(x, verbose = FALSE, ...)

Arguments

x

An xgb.DMatrix object.

verbose

Whether to print colnames (when present).

...

Not currently used.

Examples

Run this code
data(agaricus.train, package = "xgboost")

dtrain <- with(agaricus.train, xgb.DMatrix(data, label = label, nthread = 2))
dtrain

print(dtrain, verbose = TRUE)

Run the code above in your browser using DataLab