| 1615 | } |
| 1616 | |
| 1617 | int 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 | |
| 1630 | int LGBM_NetworkInit(const char* machines, |
| 1631 | int local_listen_port, |
nothing calls this directly
no test coverage detected