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

Function XGDMatrixSetInfoFromInterface

src/c_api/c_api.cc:644–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644XGB_DLL int XGDMatrixSetInfoFromInterface(DMatrixHandle handle, char const *field,
645 char const *interface_c_str) {
646 API_BEGIN();
647 CHECK_HANDLE();
648 xgboost_CHECK_C_ARG_PTR(field);
649 auto const &p_fmat = *static_cast<std::shared_ptr<DMatrix> *>(handle);
650 p_fmat->SetInfo(field, interface_c_str);
651 API_END();
652}
653
654XGB_DLL int XGDMatrixSetUIntInfo(DMatrixHandle handle, const char *field, const unsigned *info,
655 xgboost::bst_ulong len) {

Calls 1

SetInfoMethod · 0.45

Tested by 2

MakeLabelForTestFunction · 0.68
TESTFunction · 0.68