Unverified Commit a5448233 authored by Alberto Ferreira's avatar Alberto Ferreira Committed by GitHub
Browse files

Fix #2898: Clearer warning message for user (2^max_depth > num_leaves) (#3537)



* Fix #2898: Clearer warning message (2^max_depth > num_leaves).

* Update src/io/config.cpp
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>

* Update src/io/config.cpp
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
parent 71a1a4f6
......@@ -317,7 +317,9 @@ void Config::CheckParamConflict() {
double full_num_leaves = std::pow(2, max_depth);
if (full_num_leaves > num_leaves
&& num_leaves == kDefaultNumLeaves) {
Log::Warning("Accuracy may be bad since you didn't set num_leaves and 2^max_depth > num_leaves");
Log::Warning("Accuracy may be bad since you didn't explicitly set num_leaves OR 2^max_depth > num_leaves."
" (num_leaves=%d).",
num_leaves);
}
if (full_num_leaves < num_leaves) {
......
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