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

Function LGBM_BoosterLoadModelFromString

src/c_api.cpp:1100–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098}
1099
1100int LGBM_BoosterLoadModelFromString(
1101 const char* model_str,
1102 int* out_num_iterations,
1103 BoosterHandle* out) {
1104 API_BEGIN();
1105 auto ret = std::unique_ptr<Booster>(new Booster(nullptr));
1106 ret->LoadModelFromString(model_str);
1107 *out_num_iterations = ret->GetBoosting()->GetCurrentIteration();
1108 *out = ret.release();
1109 API_END();
1110}
1111
1112#pragma warning(disable : 4702)
1113int LGBM_BoosterFree(BoosterHandle handle) {

Callers 1

Calls 3

LoadModelFromStringMethod · 0.45
GetCurrentIterationMethod · 0.45
GetBoostingMethod · 0.45

Tested by

no test coverage detected