print.xgb.DMatrix: Print xgb.DMatrix

View source: R/xgb.DMatrix.R

print.xgb.DMatrixR Documentation

Print xgb.DMatrix

Description

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

Usage

## 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

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

dtrain
print(dtrain, verbose=TRUE)


xgboost documentation built on Sept. 11, 2024, 8:26 p.m.