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
6c736da9
Commit
6c736da9
authored
Jan 23, 2017
by
Guolin Ke
Browse files
fix error that sum_hessian may be zero.
parent
a4a0235d
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 @
6c736da9
...
...
@@ -64,7 +64,7 @@ public:
*/
void
FindBestThreshold
(
double
sum_gradient
,
double
sum_hessian
,
data_size_t
num_data
,
SplitInfo
*
output
)
{
find_best_threshold_fun_
(
sum_gradient
,
sum_hessian
,
num_data
,
output
);
find_best_threshold_fun_
(
sum_gradient
,
sum_hessian
+
2
*
kEpsilon
,
num_data
,
output
);
if
(
output
->
gain
>
kMinScore
)
{
is_splittable_
=
true
;
}
else
{
...
...
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