Fix prediction from loaded pickle. (#4516)

This commit is contained in:
Jiaming Yuan
2019-05-30 15:05:09 +08:00
committed by GitHub
parent fed665ae8a
commit b48f895027
3 changed files with 53 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ class Learner : public rabit::Serializable {
bool pred_leaf = false,
bool pred_contribs = false,
bool approx_contribs = false,
bool pred_interactions = false) const = 0;
bool pred_interactions = false) = 0;
/*!
* \brief Set additional attribute to the Booster.