Skip to content

Commit

Permalink
Fix typo in GatherInfoForThresholdCategorical (#2040)
Browse files Browse the repository at this point in the history
  • Loading branch information
remcob-gr authored and guolinke committed Mar 9, 2019
1 parent 5801460 commit 9de526f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treelearner/feature_histogram.hpp
Expand Up @@ -384,7 +384,7 @@ class FeatureHistogram {
double current_gain = GetLeafSplitGain(sum_right_gradient, sum_right_hessian,
meta_->config->lambda_l1, l2,
meta_->config->max_delta_step)
+ GetLeafSplitGain(sum_left_gradient, sum_right_hessian,
+ GetLeafSplitGain(sum_left_gradient, sum_left_hessian,
meta_->config->lambda_l1, l2,
meta_->config->max_delta_step);
if (std::isnan(current_gain) || current_gain <= min_gain_shift) {
Expand Down

0 comments on commit 9de526f

Please sign in to comment.