Commit 582ded51 authored by Guolin Ke's avatar Guolin Ke
Browse files

fix #596

parent 591efb6d
......@@ -172,7 +172,9 @@ private:
} else {
int loop_size = static_cast<int>(features.size());
for (int i = 0; i < loop_size; ++i) {
pred_buf[features[i].first] = 0.0f;
if (features[i].first < num_feature_) {
pred_buf[features[i].first] = 0.0f;
}
}
}
}
......
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