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

Function LGBM_BoosterCalcNumPredict

src/c_api.cpp:1333–1343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1331}
1332
1333int LGBM_BoosterCalcNumPredict(BoosterHandle handle,
1334 int num_row,
1335 int predict_type,
1336 int num_iteration,
1337 int64_t* out_len) {
1338 API_BEGIN();
1339 Booster* ref_booster = reinterpret_cast<Booster*>(handle);
1340 *out_len = static_cast<int64_t>(num_row) * ref_booster->GetBoosting()->NumPredictOneRow(
1341 num_iteration, predict_type == C_API_PREDICT_LEAF_INDEX, predict_type == C_API_PREDICT_CONTRIB);
1342 API_END();
1343}
1344
1345int LGBM_BoosterSetNumLabels(BoosterHandle handle, int num_labels) {
1346 API_BEGIN();

Callers 1

Calls 2

NumPredictOneRowMethod · 0.45
GetBoostingMethod · 0.45

Tested by

no test coverage detected