| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/xgb.DMatrix.R |
| 3 |
\name{print.xgb.DMatrix} |
| 4 |
\alias{print.xgb.DMatrix} |
| 5 |
\title{Print xgb.DMatrix} |
| 6 |
\usage{ |
| 7 |
\method{print}{xgb.DMatrix}(x, verbose = FALSE, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{An xgb.DMatrix object.} |
| 11 |
|
| 12 |
\item{verbose}{Whether to print colnames (when present).} |
| 13 |
|
| 14 |
\item{...}{Not currently used.} |
| 15 |
} |
| 16 |
\description{ |
| 17 |
Print information about xgb.DMatrix. |
| 18 |
Currently it displays dimensions and presence of info-fields and colnames. |
| 19 |
} |
| 20 |
\examples{ |
| 21 |
data(agaricus.train, package = "xgboost") |
| 22 |
|
| 23 |
dtrain <- with(agaricus.train, xgb.DMatrix(data, label = label, nthread = 2)) |
| 24 |
dtrain |
| 25 |
|
| 26 |
print(dtrain, verbose = TRUE) |
| 27 |
|
| 28 |
} |