@@ -431,7 +431,7 @@ XGB_DLL int XGProxyDMatrixSetDataCudaArrayInterface(DMatrixHandle handle,
431431 CHECK (p_m);
432432 auto m = static_cast <xgboost::data::DMatrixProxy *>(p_m->get ());
433433 CHECK (m) << " Current DMatrix type does not support set data." ;
434- m->SetCUDAArray (c_interface_str);
434+ m->SetCudaArray (c_interface_str);
435435 API_END ();
436436}
437437
@@ -443,19 +443,19 @@ XGB_DLL int XGProxyDMatrixSetDataCudaColumnar(DMatrixHandle handle, char const *
443443 CHECK (p_m);
444444 auto m = static_cast <xgboost::data::DMatrixProxy *>(p_m->get ());
445445 CHECK (m) << " Current DMatrix type does not support set data." ;
446- m->SetCUDAArray (c_interface_str);
446+ m->SetCudaColumnar (c_interface_str);
447447 API_END ();
448448}
449449
450- XGB_DLL int XGProxyDMatrixSetDataColumnar (DMatrixHandle handle, char const *c_interface_str ) {
450+ XGB_DLL int XGProxyDMatrixSetDataColumnar (DMatrixHandle handle, char const *data ) {
451451 API_BEGIN ();
452452 CHECK_HANDLE ();
453- xgboost_CHECK_C_ARG_PTR (c_interface_str );
453+ xgboost_CHECK_C_ARG_PTR (data );
454454 auto p_m = static_cast <std::shared_ptr<xgboost::DMatrix> *>(handle);
455455 CHECK (p_m);
456456 auto m = static_cast <xgboost::data::DMatrixProxy *>(p_m->get ());
457457 CHECK (m) << " Current DMatrix type does not support set data." ;
458- m->SetColumnarData (c_interface_str );
458+ m->SetColumnar (data );
459459 API_END ();
460460}
461461
@@ -467,7 +467,7 @@ XGB_DLL int XGProxyDMatrixSetDataDense(DMatrixHandle handle, char const *c_inter
467467 CHECK (p_m);
468468 auto m = static_cast <xgboost::data::DMatrixProxy *>(p_m->get ());
469469 CHECK (m) << " Current DMatrix type does not support set data." ;
470- m->SetArrayData (c_interface_str);
470+ m->SetArray (c_interface_str);
471471 API_END ();
472472}
473473
@@ -482,7 +482,7 @@ XGB_DLL int XGProxyDMatrixSetDataCSR(DMatrixHandle handle, char const *indptr, c
482482 CHECK (p_m);
483483 auto m = static_cast <xgboost::data::DMatrixProxy *>(p_m->get ());
484484 CHECK (m) << " Current DMatrix type does not support set data." ;
485- m->SetCSRData (indptr, indices, data, ncol, true );
485+ m->SetCsr (indptr, indices, data, ncol, true );
486486 API_END ();
487487}
488488
@@ -1417,7 +1417,7 @@ XGB_DLL int XGBoosterPredictFromDense(BoosterHandle handle, char const *array_in
14171417 auto proxy = dynamic_cast <data::DMatrixProxy *>(p_m.get ());
14181418 CHECK (proxy) << " Invalid input type for inplace predict." ;
14191419 xgboost_CHECK_C_ARG_PTR (array_interface);
1420- proxy->SetArrayData (array_interface);
1420+ proxy->SetArray (array_interface);
14211421 auto *learner = static_cast <xgboost::Learner *>(handle);
14221422 InplacePredictImpl (p_m, c_json_config, learner, out_shape, out_dim, out_result);
14231423 API_END ();
@@ -1438,7 +1438,7 @@ XGB_DLL int XGBoosterPredictFromColumnar(BoosterHandle handle, char const *array
14381438 auto proxy = dynamic_cast <data::DMatrixProxy *>(p_m.get ());
14391439 CHECK (proxy) << " Invalid input type for inplace predict." ;
14401440 xgboost_CHECK_C_ARG_PTR (array_interface);
1441- proxy->SetColumnarData (array_interface);
1441+ proxy->SetColumnar (array_interface);
14421442 auto *learner = static_cast <xgboost::Learner *>(handle);
14431443 InplacePredictImpl (p_m, c_json_config, learner, out_shape, out_dim, out_result);
14441444 API_END ();
@@ -1460,7 +1460,7 @@ XGB_DLL int XGBoosterPredictFromCSR(BoosterHandle handle, char const *indptr, ch
14601460 auto proxy = dynamic_cast <data::DMatrixProxy *>(p_m.get ());
14611461 CHECK (proxy) << " Invalid input type for inplace predict." ;
14621462 xgboost_CHECK_C_ARG_PTR (indptr);
1463- proxy->SetCSRData (indptr, indices, data, cols, true );
1463+ proxy->SetCsr (indptr, indices, data, cols, true );
14641464 auto *learner = static_cast <xgboost::Learner *>(handle);
14651465 InplacePredictImpl (p_m, c_json_config, learner, out_shape, out_dim, out_result);
14661466 API_END ();
0 commit comments