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

Function LGBM_BoosterPredictForFile_R

src/lightgbm_R.cpp:497–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497LGBM_SE LGBM_BoosterPredictForFile_R(LGBM_SE handle,
498 LGBM_SE data_filename,
499 LGBM_SE data_has_header,
500 LGBM_SE is_rawscore,
501 LGBM_SE is_leafidx,
502 LGBM_SE is_predcontrib,
503 LGBM_SE num_iteration,
504 LGBM_SE parameter,
505 LGBM_SE result_filename,
506 LGBM_SE call_state) {
507 R_API_BEGIN();
508 int pred_type = GetPredictType(is_rawscore, is_leafidx, is_predcontrib);
509 CHECK_CALL(LGBM_BoosterPredictForFile(R_GET_PTR(handle), R_CHAR_PTR(data_filename),
510 R_AS_INT(data_has_header), pred_type, R_AS_INT(num_iteration), R_CHAR_PTR(parameter),
511 R_CHAR_PTR(result_filename)));
512 R_API_END();
513}
514
515LGBM_SE LGBM_BoosterCalcNumPredict_R(LGBM_SE handle,
516 LGBM_SE num_row,

Callers

nothing calls this directly

Calls 3

GetPredictTypeFunction · 0.70
R_GET_PTRFunction · 0.50

Tested by

no test coverage detected