diff --git a/src/io/config.cpp b/src/io/config.cpp index 04f05c175799..a3f7536267a3 100644 --- a/src/io/config.cpp +++ b/src/io/config.cpp @@ -345,7 +345,7 @@ void Config::CheckParamConflict() { min_data_in_leaf = 2; Log::Warning("min_data_in_leaf has been increased to 2 because this is required when path smoothing is active."); } - if (is_parallel && (monotone_constraints_method == std::string("intermediate") || monotone_constraints_method == std::string("intermediate"))) { + if (is_parallel && (monotone_constraints_method == std::string("intermediate") || monotone_constraints_method == std::string("advanced"))) { // In distributed mode, local node doesn't have histograms on all features, cannot perform "intermediate" monotone constraints. Log::Warning("Cannot use \"intermediate\" or \"advanced\" monotone constraints in parallel learning, auto set to \"basic\" method."); monotone_constraints_method = "basic";