xgb.get.DMatrix.data: Get DMatrix Data

View source: R/xgb.DMatrix.R

xgb.get.DMatrix.dataR Documentation

Get DMatrix Data

Description

Get DMatrix Data

Usage

xgb.get.DMatrix.data(dmat)

Arguments

dmat

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

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.


xgboost documentation built on Dec. 3, 2025, 5:06 p.m.