Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
fb55d72f
Commit
fb55d72f
authored
Apr 26, 2018
by
Guolin Ke
Browse files
fix #1338
parent
a0659a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/boosting/gbdt.h
src/boosting/gbdt.h
+1
-1
No files found.
src/boosting/gbdt.h
View file @
fb55d72f
...
...
@@ -185,7 +185,7 @@ public:
num_preb_in_one_row
*=
max_iteration
;
}
}
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment