print.xgb.DMatrix

0th

Percentile

Print xgb.DMatrix

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

Usage
"print"(x, verbose = FALSE, ...)
Arguments
x
an xgb.DMatrix object
verbose
whether to print colnames (when present)
...
not currently used
Aliases
  • print.xgb.DMatrix
Examples
data(agaricus.train, package='xgboost')
train <- agaricus.train
dtrain <- xgb.DMatrix(train$data, label=train$label)

dtrain
print(dtrain, verbose=TRUE)

Documentation reproduced from package xgboost, version 0.6-3, License: Apache License (== 2.0) | file LICENSE

Community examples

Looks like there are no examples yet.