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
86a95783
Unverified
Commit
86a95783
authored
Jul 23, 2019
by
Guolin Ke
Committed by
GitHub
Jul 23, 2019
Browse files
fix MissingType::Zero in categorical features. (#2275)
parent
7189743d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/io/bin.cpp
src/io/bin.cpp
+0
-2
No files found.
src/io/bin.cpp
View file @
86a95783
...
...
@@ -367,8 +367,6 @@ namespace LightGBM {
// Use MissingType::None to represent this bin contains all categoricals
if
(
cur_cat
==
distinct_values_int
.
size
()
&&
na_cnt
==
0
)
{
missing_type_
=
MissingType
::
None
;
}
else
if
(
na_cnt
==
0
)
{
missing_type_
=
MissingType
::
Zero
;
}
else
{
missing_type_
=
MissingType
::
NaN
;
}
...
...
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