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

Function LGBM_BoosterSaveModelToString_R

src/lightgbm_R.cpp:601–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601LGBM_SE LGBM_BoosterSaveModelToString_R(LGBM_SE handle,
602 LGBM_SE num_iteration,
603 LGBM_SE buffer_len,
604 LGBM_SE actual_len,
605 LGBM_SE out_str,
606 LGBM_SE call_state) {
607 R_API_BEGIN();
608 int64_t out_len = 0;
609 std::vector<char> inner_char_buf(R_AS_INT(buffer_len));
610 CHECK_CALL(LGBM_BoosterSaveModelToString(R_GET_PTR(handle), 0, R_AS_INT(num_iteration), R_AS_INT(buffer_len), &out_len, inner_char_buf.data()));
611 EncodeChar(out_str, inner_char_buf.data(), buffer_len, actual_len, static_cast<size_t>(out_len));
612 R_API_END();
613}
614
615LGBM_SE LGBM_BoosterDumpModel_R(LGBM_SE handle,
616 LGBM_SE num_iteration,

Callers

nothing calls this directly

Calls 4

dataMethod · 0.80
EncodeCharFunction · 0.70
R_GET_PTRFunction · 0.50

Tested by

no test coverage detected