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

Function LGBM_BoosterGetNumPredict

src/c_api.cpp:1294–1301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292}
1293
1294int LGBM_BoosterGetNumPredict(BoosterHandle handle,
1295 int data_idx,
1296 int64_t* out_len) {
1297 API_BEGIN();
1298 auto boosting = reinterpret_cast<Booster*>(handle)->GetBoosting();
1299 *out_len = boosting->GetNumPredictAt(data_idx);
1300 API_END();
1301}
1302
1303int LGBM_BoosterGetPredict(BoosterHandle handle,
1304 int data_idx,

Callers 1

Calls 2

GetBoostingMethod · 0.45
GetNumPredictAtMethod · 0.45

Tested by

no test coverage detected