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

Function LGBM_BoosterDumpModel_R

src/lightgbm_R.cpp:615–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615LGBM_SE LGBM_BoosterDumpModel_R(LGBM_SE handle,
616 LGBM_SE num_iteration,
617 LGBM_SE buffer_len,
618 LGBM_SE actual_len,
619 LGBM_SE out_str,
620 LGBM_SE call_state) {
621 R_API_BEGIN();
622 int64_t out_len = 0;
623 std::vector<char> inner_char_buf(R_AS_INT(buffer_len));
624 CHECK_CALL(LGBM_BoosterDumpModel(R_GET_PTR(handle), 0, R_AS_INT(num_iteration), R_AS_INT(buffer_len), &out_len, inner_char_buf.data()));
625 EncodeChar(out_str, inner_char_buf.data(), buffer_len, actual_len, static_cast<size_t>(out_len));
626 R_API_END();
627}

Callers

nothing calls this directly

Calls 4

dataMethod · 0.80
LGBM_BoosterDumpModelFunction · 0.70
EncodeCharFunction · 0.70
R_GET_PTRFunction · 0.50

Tested by

no test coverage detected