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
1881a501
Unverified
Commit
1881a501
authored
Sep 03, 2023
by
James Lamb
Committed by
GitHub
Sep 03, 2023
Browse files
reduce verbosity of some log messages (#6073)
parent
2cae109b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
R-package/tests/testthat/test_basic.R
R-package/tests/testthat/test_basic.R
+2
-0
src/c_api.cpp
src/c_api.cpp
+2
-2
src/io/dataset.cpp
src/io/dataset.cpp
+2
-2
No files found.
R-package/tests/testthat/test_basic.R
View file @
1881a501
...
...
@@ -3265,6 +3265,8 @@ test_that("lightgbm() accepts 'weight' and 'weights'", {
,
metric
=
"auc"
,
early_stopping_round
=
nrounds
,
num_threads
=
.LGB_MAX_THREADS
# include a nonsense parameter just to trigger a WARN-level log
,
nonsense_param
=
1.0
)
if
(
!
is.null
(
verbose_param
))
{
params
[[
"verbose"
]]
<-
verbose_param
...
...
src/c_api.cpp
View file @
1881a501
...
...
@@ -150,7 +150,7 @@ class Booster {
objective_fun_
.
reset
(
ObjectiveFunction
::
CreateObjectiveFunction
(
config_
.
objective
,
config_
));
if
(
objective_fun_
==
nullptr
)
{
Log
::
Warning
(
"Using self-defined objective function"
);
Log
::
Info
(
"Using self-defined objective function"
);
}
// initialize the objective function
if
(
objective_fun_
!=
nullptr
)
{
...
...
@@ -320,7 +320,7 @@ class Booster {
objective_fun_
.
reset
(
ObjectiveFunction
::
CreateObjectiveFunction
(
config_
.
objective
,
config_
));
if
(
objective_fun_
==
nullptr
)
{
Log
::
Warning
(
"Using self-defined objective function"
);
Log
::
Info
(
"Using self-defined objective function"
);
}
// initialize the objective function
if
(
objective_fun_
!=
nullptr
)
{
...
...
src/io/dataset.cpp
View file @
1881a501
...
...
@@ -699,7 +699,7 @@ TrainingShareStates* Dataset::GetShareStates(
if
(
col_wise_time
<
row_wise_time
)
{
auto
overhead_cost
=
row_wise_init_time
+
row_wise_time
+
col_wise_time
;
Log
::
Warning
(
Log
::
Info
(
"Auto-choosing col-wise multi-threading, the overhead of testing was "
"%f seconds.
\n
"
"You can set `force_col_wise=true` to remove the overhead."
,
...
...
@@ -707,7 +707,7 @@ TrainingShareStates* Dataset::GetShareStates(
return
col_wise_state
.
release
();
}
else
{
auto
overhead_cost
=
col_wise_init_time
+
row_wise_time
+
col_wise_time
;
Log
::
Warning
(
Log
::
Info
(
"Auto-choosing row-wise multi-threading, the overhead of testing was "
"%f seconds.
\n
"
"You can set `force_row_wise=true` to remove the overhead.
\n
"
...
...
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