Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
346f8839
"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "c7d3ac1b41e84be1af0ef4bac145a73d5b97270f"
Unverified
Commit
346f8839
authored
May 26, 2021
by
shiyu1994
Committed by
GitHub
May 26, 2021
Browse files
fix GatherInfoForThresholdNumerical boundary (fix #4286) (#4322)
parent
da3465cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/treelearner/feature_histogram.hpp
src/treelearner/feature_histogram.hpp
+1
-1
No files found.
src/treelearner/feature_histogram.hpp
View file @
346f8839
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment