R/xgb.DMatrix.R
xgb.get.DMatrix.data.Rd
获取DMatrix数据
xgb.get.DMatrix.data(dmat)
一个 xgb.DMatrix 对象,由 xgb.DMatrix() 返回。
xgb.DMatrix
xgb.DMatrix()
DMatrix中保存的数据,以稀疏CSR矩阵(来自Matrix包的dgRMatrix类)的形式。如果它有特征名称,这些名称将作为列名添加到输出中。
Matrix
dgRMatrix