powered by
Get DMatrix Data
xgb.get.DMatrix.data(dmat)
The data held in the DMatrix, as a sparse CSR matrix (class dgRMatrix
dgRMatrix
from package Matrix). If it had feature names, these will be added as column names in the output.
Matrix
An xgb.DMatrix object, as returned by xgb.DMatrix().
xgb.DMatrix
xgb.DMatrix()