"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "c7d3ac1b41e84be1af0ef4bac145a73d5b97270f"
Unverified Commit 346f8839 authored by shiyu1994's avatar shiyu1994 Committed by GitHub
Browse files

fix GatherInfoForThresholdNumerical boundary (fix #4286) (#4322)

parent da3465cb
...@@ -572,7 +572,7 @@ class FeatureHistogram { ...@@ -572,7 +572,7 @@ class FeatureHistogram {
const double cnt_factor = num_data / sum_hessian; const double cnt_factor = num_data / sum_hessian;
// from right to left, and we don't need data in bin0 // from right to left, and we don't need data in bin0
for (; t >= t_end; --t) { for (; t >= t_end; --t) {
if (static_cast<uint32_t>(t + offset) < threshold) { if (static_cast<uint32_t>(t + offset) <= threshold) {
break; break;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment