Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code refactoring: cost effective gradient boosting #2407

Merged
merged 11 commits into from
Sep 26, 2019
5 changes: 3 additions & 2 deletions src/treelearner/cost_effective_gradient_boosting.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ class CostEfficientGradientBoosting {
}
}
}
private:

private:
double CalculateOndemandCosts(int feature_index, int real_fidx, int leaf_index) const {
if (tree_learner_->config_->cegb_penalty_feature_lazy.empty()) {
return 0.0f;
Expand Down Expand Up @@ -107,5 +108,5 @@ class CostEfficientGradientBoosting {
std::vector<uint32_t> feature_used_in_data_;
};

} // namespace LightGBM
StrikerRUS marked this conversation as resolved.
Show resolved Hide resolved
} // namespace LightGBM
#endif // LIGHTGBM_TREELEARNER_COST_EFFECTIVE_GRADIENT_BOOSTING_HPP_