| 642 | } |
| 643 | |
| 644 | XGB_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 | |
| 654 | XGB_DLL int XGDMatrixSetUIntInfo(DMatrixHandle handle, const char *field, const unsigned *info, |
| 655 | xgboost::bst_ulong len) { |