Squashed commits: [9109887] Added test for eta decay(+1 squashed commit) Squashed commits: [1336bd4] Added tests for eta decay (+2 squashed commit) Squashed commits: [91aac2d] Added tests for eta decay (+1 squashed commit) Squashed commits: [3ff48e7] Added test for eta decay [6bb1eed] Rewrote Rd files [bf0dec4] Added learning_rates for diff eta in each boosting round
31 lines
973 B
R
31 lines
973 B
R
% Generated by roxygen2 (4.1.1): do not edit by hand
|
|
% Please edit documentation in R/xgb.DMatrix.R
|
|
\name{xgb.DMatrix}
|
|
\alias{xgb.DMatrix}
|
|
\title{Contruct xgb.DMatrix object}
|
|
\usage{
|
|
xgb.DMatrix(data, info = list(), missing = NA, ...)
|
|
}
|
|
\arguments{
|
|
\item{data}{a \code{matrix} object, a \code{dgCMatrix} object or a character
|
|
indicating the data file.}
|
|
|
|
\item{info}{a list of information of the xgb.DMatrix object}
|
|
|
|
\item{missing}{Missing is only used when input is dense matrix, pick a float
|
|
value that represents missing value. Sometime a data use 0 or other extreme value to represents missing values.}
|
|
|
|
\item{...}{other information to pass to \code{info}.}
|
|
}
|
|
\description{
|
|
Contruct xgb.DMatrix object from dense matrix, sparse matrix or local file.
|
|
}
|
|
\examples{
|
|
data(agaricus.train, package='xgboost')
|
|
train <- agaricus.train
|
|
dtrain <- xgb.DMatrix(train$data, label=train$label)
|
|
xgb.DMatrix.save(dtrain, 'xgb.DMatrix.data')
|
|
dtrain <- xgb.DMatrix('xgb.DMatrix.data')
|
|
}
|
|
|