Skip to content

Commit

Permalink
move CheckParamConflict() after LogLevel processing (#3742)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari authored Jan 9, 2021
1 parent 6098549 commit d6f6abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/io/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) {
}
valid = new_valid;

// check for conflicts
CheckParamConflict();

if (verbosity == 1) {
LightGBM::Log::ResetLogLevel(LightGBM::LogLevel::Info);
} else if (verbosity == 0) {
Expand All @@ -246,6 +243,9 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) {
} else {
LightGBM::Log::ResetLogLevel(LightGBM::LogLevel::Fatal);
}

// check for conflicts
CheckParamConflict();
}

bool CheckMultiClassObjective(const std::string& objective) {
Expand Down

0 comments on commit d6f6abf

Please sign in to comment.