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
0ee4d37f
"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "cff80442e118d3ceb2440b0431e0c75413ff18cc"
Unverified
Commit
0ee4d37f
authored
Feb 18, 2021
by
James Lamb
Committed by
GitHub
Feb 18, 2021
Browse files
remove commented-out code in cross-entropy metric source (#3999)
parent
eb5f471b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/metric/xentropy_metric.hpp
src/metric/xentropy_metric.hpp
+0
-2
No files found.
src/metric/xentropy_metric.hpp
View file @
0ee4d37f
...
@@ -281,12 +281,10 @@ class KullbackLeiblerDivergence : public Metric {
...
@@ -281,12 +281,10 @@ class KullbackLeiblerDivergence : public Metric {
// evaluate offset term
// evaluate offset term
presum_label_entropy_
=
0.0
f
;
presum_label_entropy_
=
0.0
f
;
if
(
weights_
==
nullptr
)
{
if
(
weights_
==
nullptr
)
{
// #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
)
{
presum_label_entropy_
+=
YentLoss
(
label_
[
i
]);
presum_label_entropy_
+=
YentLoss
(
label_
[
i
]);
}
}
}
else
{
}
else
{
// #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
)
{
presum_label_entropy_
+=
YentLoss
(
label_
[
i
])
*
weights_
[
i
];
presum_label_entropy_
+=
YentLoss
(
label_
[
i
])
*
weights_
[
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