Learn R Programming

xgboost (version 3.1.2.1)

xgb.get.DMatrix.data: Get DMatrix Data

Description

Get DMatrix Data

Usage

xgb.get.DMatrix.data(dmat)

Value

The data held in the DMatrix, as a sparse CSR matrix (class dgRMatrix

from package Matrix). If it had feature names, these will be added as column names in the output.

Arguments

dmat

An xgb.DMatrix object, as returned by xgb.DMatrix().