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

Function XGDMatrixCreateFromFile

src/c_api/c_api.cc:267–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267XGB_DLL int XGDMatrixCreateFromFile(const char *fname, int silent, DMatrixHandle *out) {
268 xgboost_CHECK_C_ARG_PTR(fname);
269 xgboost_CHECK_C_ARG_PTR(out);
270
271 LOG(WARNING) << error::DeprecatedFunc(__func__, "2.0.0", "XGDMatrixCreateFromURI");
272
273 Json config{Object()};
274 config["uri"] = std::string{fname};
275 config["silent"] = silent;
276 std::string config_str;
277 Json::Dump(config, &config_str);
278 return XGDMatrixCreateFromURI(config_str.c_str(), out);
279}
280
281XGB_DLL int XGDMatrixCreateFromURI(const char *config, DMatrixHandle *out) {
282 API_BEGIN();

Callers 3

TESTFunction · 0.85
mainFunction · 0.85

Calls 3

DeprecatedFuncFunction · 0.85
XGDMatrixCreateFromURIFunction · 0.85
c_strMethod · 0.80

Tested by 1

TESTFunction · 0.68