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
2f0fb204
Commit
2f0fb204
authored
Aug 10, 2017
by
Guolin Ke
Browse files
fix #816
parent
1a7d3aa9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/metric/map_metric.hpp
src/metric/map_metric.hpp
+1
-1
No files found.
src/metric/map_metric.hpp
View file @
2f0fb204
...
...
@@ -86,7 +86,7 @@ public:
data_size_t
idx
=
sorted_idx
[
j
];
if
(
label
[
idx
]
>
0.5
f
)
{
++
num_hit
;
sum_ap
+=
static_cast
<
double
>
(
num_hit
)
/
(
i
+
1.0
f
);
sum_ap
+=
static_cast
<
double
>
(
num_hit
)
/
(
j
+
1.0
f
);
}
}
(
*
out
)[
i
]
=
sum_ap
/
cur_k
;
...
...
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