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
a5ad3bdd
Commit
a5ad3bdd
authored
Sep 07, 2018
by
Nikita Titov
Committed by
Qiwei Ye
Sep 07, 2018
Browse files
added warning about boost_from_average default value (#1643)
parent
bd3889f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/objective/binary_objective.hpp
src/objective/binary_objective.hpp
+5
-0
No files found.
src/objective/binary_objective.hpp
View file @
a5ad3bdd
...
...
@@ -51,6 +51,11 @@ public:
weights_
=
metadata
.
weights
();
data_size_t
cnt_positive
=
0
;
data_size_t
cnt_negative
=
0
;
// REMOVEME: remove the warning after 2.3 version release
Log
::
Warning
(
"Starting from the 2.1.2 version, default value for "
"the
\"
boost_from_average
\"
parameter in
\"
binary
\"
objective is true.
\n
"
"This may cause significantly different results comparing to the previous versions of LightGBM.
\n
"
"Try to set boost_from_average=false, if your old models produce bad results"
);
// count for positive and negative samples
#pragma omp parallel for schedule(static) reduction(+:cnt_positive, cnt_negative)
for
(
data_size_t
i
=
0
;
i
<
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