MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / LGBM_BoosterGetPredict_R

Function LGBM_BoosterGetPredict_R

src/lightgbm_R.cpp:472–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472LGBM_SE LGBM_BoosterGetPredict_R(LGBM_SE handle,
473 LGBM_SE data_idx,
474 LGBM_SE out_result,
475 LGBM_SE call_state) {
476 R_API_BEGIN();
477 double* ptr_ret = R_REAL_PTR(out_result);
478 int64_t out_len;
479 CHECK_CALL(LGBM_BoosterGetPredict(R_GET_PTR(handle), R_AS_INT(data_idx), &out_len, ptr_ret));
480 R_API_END();
481}
482
483int GetPredictType(LGBM_SE is_rawscore, LGBM_SE is_leafidx, LGBM_SE is_predcontrib) {
484 int pred_type = C_API_PREDICT_NORMAL;

Callers

nothing calls this directly

Calls 2

LGBM_BoosterGetPredictFunction · 0.70
R_GET_PTRFunction · 0.50

Tested by

no test coverage detected