Unverified Commit 86a95783 authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

fix MissingType::Zero in categorical features. (#2275)

parent 7189743d
...@@ -367,8 +367,6 @@ namespace LightGBM { ...@@ -367,8 +367,6 @@ namespace LightGBM {
// Use MissingType::None to represent this bin contains all categoricals // Use MissingType::None to represent this bin contains all categoricals
if (cur_cat == distinct_values_int.size() && na_cnt == 0) { if (cur_cat == distinct_values_int.size() && na_cnt == 0) {
missing_type_ = MissingType::None; missing_type_ = MissingType::None;
} else if (na_cnt == 0) {
missing_type_ = MissingType::Zero;
} else { } else {
missing_type_ = MissingType::NaN; missing_type_ = MissingType::NaN;
} }
......
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