| print.xgb.DMatrix | R Documentation |
Print information about xgb.DMatrix. Currently it displays dimensions and presence of info-fields and colnames.
## S3 method for class 'xgb.DMatrix'
print(x, verbose = FALSE, ...)
x |
An xgb.DMatrix object. |
verbose |
Whether to print colnames (when present). |
... |
Not currently used. |
data(agaricus.train, package = "xgboost")
dtrain <- with(agaricus.train, xgb.DMatrix(data, label = label, nthread = 2))
dtrain
print(dtrain, verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.