跳到内容

获取 DMatrix 中非缺失条目数

用法

xgb.get.DMatrix.num.non.missing(dmat)

参数

dmat

一个 xgb.DMatrix 对象,由 xgb.DMatrix() 返回。

返回值

DMatrix 中非缺失条目的数量。