fix print.xgb.DMatrix doc
This commit is contained in:
@@ -12,7 +12,15 @@ print.xgb.DMatrix(x, verbose = FALSE, ...)
|
||||
\item{verbose}{whether to print colnames (when present)}
|
||||
}
|
||||
\description{
|
||||
Print information about an xgb.DMatrix.
|
||||
Currently is would display
|
||||
Print information about xgb.DMatrix.
|
||||
Currently it displays dimensions and presence of info-fields and colnames.
|
||||
}
|
||||
\examples{
|
||||
data(agaricus.train, package='xgboost')
|
||||
train <- agaricus.train
|
||||
dtrain <- xgb.DMatrix(train$data, label=train$label)
|
||||
|
||||
dtrain
|
||||
print(dtrain, verbose=T)
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ value that represents missing value. Sometime a data use 0 or other extreme valu
|
||||
}
|
||||
\description{
|
||||
Contruct xgb.DMatrix object from dense matrix, sparse matrix
|
||||
or local file (that is a previously saved \code{xgb.DMatrix}).
|
||||
or local file (that was created previously by saving an \code{xgb.DMatrix}).
|
||||
}
|
||||
\examples{
|
||||
data(agaricus.train, package='xgboost')
|
||||
|
||||
Reference in New Issue
Block a user