| 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; |
| 485 | if (R_AS_INT(is_rawscore)) { |
| 486 | pred_type = C_API_PREDICT_RAW_SCORE; |
| 487 | } |
| 488 | if (R_AS_INT(is_leafidx)) { |
| 489 | pred_type = C_API_PREDICT_LEAF_INDEX; |
| 490 | } |
| 491 | if (R_AS_INT(is_predcontrib)) { |
| 492 | pred_type = C_API_PREDICT_CONTRIB; |
| 493 | } |
| 494 | return pred_type; |
| 495 | } |
| 496 | |
| 497 | LGBM_SE LGBM_BoosterPredictForFile_R(LGBM_SE handle, |
| 498 | LGBM_SE data_filename, |
no outgoing calls
no test coverage detected