print.xgb.DMatrix: Print xgb.DMatrix

Description Usage Arguments Examples

View source: R/xgb.DMatrix.R

Description

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

Usage

1
2
## S3 method for class 'xgb.DMatrix'
print(x, verbose = FALSE, ...)

Arguments

x

an xgb.DMatrix object

verbose

whether to print colnames (when present)

...

not currently used

Examples

1
2
3
4
5
6
data(agaricus.train, package='xgboost')
train <- agaricus.train
dtrain <- xgb.DMatrix(train$data, label=train$label)

dtrain
print(dtrain, verbose=TRUE)

xgboost documentation built on April 22, 2021, 5:06 p.m.