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

Function LGBM_BoosterUpdateOneIter

src/c_api.cpp:1174–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172}
1173
1174int LGBM_BoosterUpdateOneIter(BoosterHandle handle, int* is_finished) {
1175 API_BEGIN();
1176 Booster* ref_booster = reinterpret_cast<Booster*>(handle);
1177 if (ref_booster->TrainOneIter()) {
1178 *is_finished = 1;
1179 } else {
1180 *is_finished = 0;
1181 }
1182 API_END();
1183}
1184
1185int LGBM_BoosterUpdateOneIterCustom(BoosterHandle handle,
1186 const float* grad,

Callers 1

Calls 1

TrainOneIterMethod · 0.45

Tested by

no test coverage detected