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:
data_size_t right_count = 0;
// set values
bool use_na_as_missing;
bool skip_default_bin;
bool use_na_as_missing = false;
bool skip_default_bin = false;
if (meta_->missing_type == MissingType::Zero) {
skip_default_bin = true;
use_na_as_missing = false;
} else {
skip_default_bin = false;
} else if (meta_->missing_type == MissingType::NaN) {
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