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

Function XGDMatrixSetStrFeatureInfo

src/c_api/c_api.cc:665–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663}
664
665XGB_DLL int XGDMatrixSetStrFeatureInfo(DMatrixHandle handle, const char *field, const char **c_info,
666 const xgboost::bst_ulong size) {
667 API_BEGIN();
668 CHECK_HANDLE();
669 auto &info = static_cast<std::shared_ptr<DMatrix> *>(handle)->get()->Info();
670 xgboost_CHECK_C_ARG_PTR(field);
671 info.SetFeatureInfo(field, c_info, size);
672 API_END();
673}
674
675XGB_DLL int XGDMatrixGetStrFeatureInfo(DMatrixHandle handle, const char *field,
676 xgboost::bst_ulong *len, const char ***out_features) {

Calls 3

SetFeatureInfoMethod · 0.80
InfoMethod · 0.45
getMethod · 0.45

Tested by 1

TESTFunction · 0.68