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
34a643f6
Unverified
Commit
34a643f6
authored
Jun 11, 2018
by
Guolin Ke
Committed by
GitHub
Jun 11, 2018
Browse files
fix #1426
parent
db61ab68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/boosting/gbdt.cpp
src/boosting/gbdt.cpp
+0
-1
No files found.
src/boosting/gbdt.cpp
View file @
34a643f6
...
@@ -718,7 +718,6 @@ void GBDT::GetPredictAt(int data_idx, double* out_result, int64_t* out_len) {
...
@@ -718,7 +718,6 @@ void GBDT::GetPredictAt(int data_idx, double* out_result, int64_t* out_len) {
}
else
{
}
else
{
#pragma omp parallel for schedule(static)
#pragma omp parallel for schedule(static)
for
(
data_size_t
i
=
0
;
i
<
num_data
;
++
i
)
{
for
(
data_size_t
i
=
0
;
i
<
num_data
;
++
i
)
{
std
::
vector
<
double
>
tmp_result
(
num_tree_per_iteration_
);
for
(
int
j
=
0
;
j
<
num_tree_per_iteration_
;
++
j
)
{
for
(
int
j
=
0
;
j
<
num_tree_per_iteration_
;
++
j
)
{
out_result
[
j
*
num_data
+
i
]
=
static_cast
<
double
>
(
raw_scores
[
j
*
num_data
+
i
]);
out_result
[
j
*
num_data
+
i
]
=
static_cast
<
double
>
(
raw_scores
[
j
*
num_data
+
i
]);
}
}
...
...
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