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
159668d6
Commit
159668d6
authored
Dec 01, 2017
by
Guolin Ke
Browse files
fix #1089 : voting parallel bug for sparse data
parent
63b60825
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/treelearner/voting_parallel_tree_learner.cpp
src/treelearner/voting_parallel_tree_learner.cpp
+1
-1
No files found.
src/treelearner/voting_parallel_tree_learner.cpp
View file @
159668d6
...
...
@@ -169,7 +169,7 @@ void VotingParallelTreeLearner<TREELEARNER_T>::GlobalVoting(int leaf_idx, const
}
// get mean number on machines
score_t
mean_num_data
=
GetGlobalDataCountInLeaf
(
leaf_idx
)
/
static_cast
<
score_t
>
(
num_machines_
);
std
::
vector
<
LightSplitInfo
>
feature_best_split
(
this
->
num
_features
_
,
LightSplitInfo
());
std
::
vector
<
LightSplitInfo
>
feature_best_split
(
this
->
train_data_
->
num_total
_features
()
,
LightSplitInfo
());
for
(
auto
&
split
:
splits
)
{
int
fid
=
split
.
feature
;
if
(
fid
<
0
)
{
...
...
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