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

fix #596

parent 591efb6d
...@@ -172,10 +172,12 @@ private: ...@@ -172,10 +172,12 @@ private:
} else { } else {
int loop_size = static_cast<int>(features.size()); int loop_size = static_cast<int>(features.size());
for (int i = 0; i < loop_size; ++i) { for (int i = 0; i < loop_size; ++i) {
if (features[i].first < num_feature_) {
pred_buf[features[i].first] = 0.0f; pred_buf[features[i].first] = 0.0f;
} }
} }
} }
}
/*! \brief Boosting model */ /*! \brief Boosting model */
const Boosting* boosting_; const Boosting* boosting_;
......
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