| 470 | } |
| 471 | |
| 472 | LGBM_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 | |
| 483 | int GetPredictType(LGBM_SE is_rawscore, LGBM_SE is_leafidx, LGBM_SE is_predcontrib) { |
| 484 | int pred_type = C_API_PREDICT_NORMAL; |
nothing calls this directly
no test coverage detected