Commit c3f10a1b authored by Guolin Ke's avatar Guolin Ke Committed by Qiwei Ye
Browse files

fix missing value handle in forced split (#1809)

parent ef4b5be5
...@@ -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;
} }
......
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