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

Function GetPredictType

src/lightgbm_R.cpp:483–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483int 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
497LGBM_SE LGBM_BoosterPredictForFile_R(LGBM_SE handle,
498 LGBM_SE data_filename,

Calls

no outgoing calls

Tested by

no test coverage detected