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
582ded51
Commit
582ded51
authored
Jun 07, 2017
by
Guolin Ke
Browse files
fix #596
parent
591efb6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/application/predictor.hpp
src/application/predictor.hpp
+3
-1
No files found.
src/application/predictor.hpp
View file @
582ded51
...
@@ -172,7 +172,9 @@ private:
...
@@ -172,7 +172,9 @@ 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
)
{
pred_buf
[
features
[
i
].
first
]
=
0.0
f
;
if
(
features
[
i
].
first
<
num_feature_
)
{
pred_buf
[
features
[
i
].
first
]
=
0.0
f
;
}
}
}
}
}
}
}
...
...
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