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

Function LGBM_BoosterGetCurrentIteration

src/c_api.cpp:1230–1235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228}
1229
1230int LGBM_BoosterGetCurrentIteration(BoosterHandle handle, int* out_iteration) {
1231 API_BEGIN();
1232 Booster* ref_booster = reinterpret_cast<Booster*>(handle);
1233 *out_iteration = ref_booster->GetBoosting()->GetCurrentIteration();
1234 API_END();
1235}
1236
1237int LGBM_BoosterNumModelPerIteration(BoosterHandle handle, int* out_tree_per_iteration) {
1238 API_BEGIN();

Callers 1

Calls 2

GetCurrentIterationMethod · 0.45
GetBoostingMethod · 0.45

Tested by

no test coverage detected