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

Function LGBM_BoosterNumModelPerIteration

src/c_api.cpp:1237–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1235}
1236
1237int LGBM_BoosterNumModelPerIteration(BoosterHandle handle, int* out_tree_per_iteration) {
1238 API_BEGIN();
1239 Booster* ref_booster = reinterpret_cast<Booster*>(handle);
1240 *out_tree_per_iteration = ref_booster->GetBoosting()->NumModelPerIteration();
1241 API_END();
1242}
1243
1244int LGBM_BoosterNumberOfTotalModel(BoosterHandle handle, int* out_models) {
1245 API_BEGIN();

Callers

nothing calls this directly

Calls 2

NumModelPerIterationMethod · 0.45
GetBoostingMethod · 0.45

Tested by

no test coverage detected