MCPcopy Create free account
hub / github.com/dmlc/xgboost / XGDMatrixNumCol

Function XGDMatrixNumCol

src/c_api/c_api.cc:913–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911}
912
913XGB_DLL int XGDMatrixNumCol(DMatrixHandle handle, bst_ulong *out) {
914 return GetDMatrixIntegralInfo(handle, out, [](DMatrix const *p_fmat) {
915 return static_cast<bst_ulong>(p_fmat->Info().num_col_);
916 });
917}
918
919// We name the function non-missing instead of non-zero since zero is perfectly valid for XGBoost.
920XGB_DLL int XGDMatrixNumNonMissing(DMatrixHandle handle, bst_ulong *out) {

Callers 3

TESTFunction · 0.85
XGDMatrixNumCol_RFunction · 0.85
XGDMatrixGetDataAsCSR_RFunction · 0.85

Calls 2

GetDMatrixIntegralInfoFunction · 0.85
InfoMethod · 0.45

Tested by 1

TESTFunction · 0.68