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
d6f6abf6
"src/vscode:/vscode.git/clone" did not exist on "3a335e9d4f63da10094d690a92cbefd0f4e6faf6"
Unverified
Commit
d6f6abf6
authored
Jan 09, 2021
by
h-vetinari
Committed by
GitHub
Jan 09, 2021
Browse files
move CheckParamConflict() after LogLevel processing (#3742)
parent
60985495
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/io/config.cpp
src/io/config.cpp
+3
-3
No files found.
src/io/config.cpp
View file @
d6f6abf6
...
@@ -234,9 +234,6 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) {
...
@@ -234,9 +234,6 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) {
}
}
valid
=
new_valid
;
valid
=
new_valid
;
// check for conflicts
CheckParamConflict
();
if
(
verbosity
==
1
)
{
if
(
verbosity
==
1
)
{
LightGBM
::
Log
::
ResetLogLevel
(
LightGBM
::
LogLevel
::
Info
);
LightGBM
::
Log
::
ResetLogLevel
(
LightGBM
::
LogLevel
::
Info
);
}
else
if
(
verbosity
==
0
)
{
}
else
if
(
verbosity
==
0
)
{
...
@@ -246,6 +243,9 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) {
...
@@ -246,6 +243,9 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) {
}
else
{
}
else
{
LightGBM
::
Log
::
ResetLogLevel
(
LightGBM
::
LogLevel
::
Fatal
);
LightGBM
::
Log
::
ResetLogLevel
(
LightGBM
::
LogLevel
::
Fatal
);
}
}
// check for conflicts
CheckParamConflict
();
}
}
bool
CheckMultiClassObjective
(
const
std
::
string
&
objective
)
{
bool
CheckMultiClassObjective
(
const
std
::
string
&
objective
)
{
...
...
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