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

Function LGBM_BoosterGetNumFeature

src/c_api.cpp:1272–1277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1270}
1271
1272int LGBM_BoosterGetNumFeature(BoosterHandle handle, int* out_len) {
1273 API_BEGIN();
1274 Booster* ref_booster = reinterpret_cast<Booster*>(handle);
1275 *out_len = ref_booster->GetBoosting()->MaxFeatureIdx() + 1;
1276 API_END();
1277}
1278
1279int LGBM_BoosterGetEval(BoosterHandle handle,
1280 int data_idx,

Callers

nothing calls this directly

Calls 2

MaxFeatureIdxMethod · 0.45
GetBoostingMethod · 0.45

Tested by

no test coverage detected