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

Function LGBM_BoosterGetLeafValue

src/c_api.cpp:1597–1605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1595}
1596
1597int LGBM_BoosterGetLeafValue(BoosterHandle handle,
1598 int tree_idx,
1599 int leaf_idx,
1600 double* out_val) {
1601 API_BEGIN();
1602 Booster* ref_booster = reinterpret_cast<Booster*>(handle);
1603 *out_val = static_cast<double>(ref_booster->GetLeafValue(tree_idx, leaf_idx));
1604 API_END();
1605}
1606
1607int LGBM_BoosterSetLeafValue(BoosterHandle handle,
1608 int tree_idx,

Callers

nothing calls this directly

Calls 1

GetLeafValueMethod · 0.45

Tested by

no test coverage detected