Commit fb55d72f authored by Guolin Ke's avatar Guolin Ke
Browse files

fix #1338

parent a0659a3d
...@@ -185,7 +185,7 @@ public: ...@@ -185,7 +185,7 @@ public:
num_preb_in_one_row *= max_iteration; num_preb_in_one_row *= max_iteration;
} }
} else if (is_pred_contrib) { } else if (is_pred_contrib) {
num_preb_in_one_row = max_feature_idx_ + 2; // +1 for 0-based indexing, +1 for baseline num_preb_in_one_row = num_tree_per_iteration_ * (max_feature_idx_ + 2); // +1 for 0-based indexing, +1 for baseline
} }
return num_preb_in_one_row; return num_preb_in_one_row;
} }
......
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