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
c3f10a1b
Commit
c3f10a1b
authored
Oct 31, 2018
by
Guolin Ke
Committed by
Qiwei Ye
Oct 31, 2018
Browse files
fix missing value handle in forced split (#1809)
parent
ef4b5be5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/treelearner/feature_histogram.hpp
src/treelearner/feature_histogram.hpp
+3
-5
No files found.
src/treelearner/feature_histogram.hpp
View file @
c3f10a1b
...
@@ -299,13 +299,11 @@ public:
...
@@ -299,13 +299,11 @@ public:
data_size_t
right_count
=
0
;
data_size_t
right_count
=
0
;
// set values
// set values
bool
use_na_as_missing
;
bool
use_na_as_missing
=
false
;
bool
skip_default_bin
;
bool
skip_default_bin
=
false
;
if
(
meta_
->
missing_type
==
MissingType
::
Zero
)
{
if
(
meta_
->
missing_type
==
MissingType
::
Zero
)
{
skip_default_bin
=
true
;
skip_default_bin
=
true
;
use_na_as_missing
=
false
;
}
else
if
(
meta_
->
missing_type
==
MissingType
::
NaN
)
{
}
else
{
skip_default_bin
=
false
;
use_na_as_missing
=
true
;
use_na_as_missing
=
true
;
}
}
...
...
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