Unverified Commit 1abc2e06 authored by Belinda Trotta's avatar Belinda Trotta Committed by GitHub
Browse files

Initialize any_nan_ property of LinearTreeLearner (#3709)

parent a86a211b
......@@ -34,6 +34,7 @@ void LinearTreeLearner::InitLinear(const Dataset* train_data, const int max_leav
}
}
}
any_nan_ = false;
for (int feat = 0; feat < train_data->num_features(); ++feat) {
if (contains_nan_[feat]) {
any_nan_ = 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