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

Function LGBM_BoosterFeatureImportance

src/c_api.cpp:1617–1628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1615}
1616
1617int LGBM_BoosterFeatureImportance(BoosterHandle handle,
1618 int num_iteration,
1619 int importance_type,
1620 double* out_results) {
1621 API_BEGIN();
1622 Booster* ref_booster = reinterpret_cast<Booster*>(handle);
1623 std::vector<double> feature_importances = ref_booster->FeatureImportance(num_iteration, importance_type);
1624 for (size_t i = 0; i < feature_importances.size(); ++i) {
1625 (out_results)[i] = feature_importances[i];
1626 }
1627 API_END();
1628}
1629
1630int LGBM_NetworkInit(const char* machines,
1631 int local_listen_port,

Callers

nothing calls this directly

Calls 2

FeatureImportanceMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected