Unverified Commit d6f6abf6 authored by h-vetinari's avatar h-vetinari Committed by GitHub
Browse files

move CheckParamConflict() after LogLevel processing (#3742)

parent 60985495
...@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment