Returns a vector of numbers of rows and of columns in an lgb.Dataset.
# S3 method for lgb.Dataset dim(x, ...)
| x | Object of class |
|---|---|
| ... | other parameters |
a vector of numbers of rows and of columns
Note: since nrow and ncol internally use dim, they can also
be directly used with an lgb.Dataset object.