powered by
nrow
xgb.DMatrix
"nrow"(x)
data(agaricus.train, package='xgboost') train <- agaricus.train dtrain <- xgb.DMatrix(train$data, label=train$label) stopifnot(nrow(dtrain) == nrow(train$data))
Run the code above in your browser using DataLab