Skip to content

Commit

Permalink
fix MissingType::Zero in categorical features. (#2275)
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Jul 23, 2019
1 parent 7189743 commit 86a9578
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/io/bin.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 86a9578

Please sign in to comment.