dim.gpb.Dataset | R Documentation |
gpb.Dataset
Returns a vector of numbers of rows and of columns in an gpb.Dataset
.
## S3 method for class 'gpb.Dataset'
dim(x, ...)
x |
Object of class |
... |
other parameters |
Note: since nrow
and ncol
internally use dim
, they can also
be directly used with an gpb.Dataset
object.
a vector of numbers of rows and of columns
data(agaricus.train, package = "gpboost")
train <- agaricus.train
dtrain <- gpb.Dataset(train$data, label = train$label)
stopifnot(nrow(dtrain) == nrow(train$data))
stopifnot(ncol(dtrain) == ncol(train$data))
stopifnot(all(dim(dtrain) == dim(train$data)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.