зеркало из https://github.com/microsoft/LightGBM.git
consider max_depth for histogram_pool_size (#2216)
* consider max_depth for histogram_pool_size * Update serial_tree_learner.cpp * Update config.cpp * Update serial_tree_learner.cpp
This commit is contained in:
Родитель
b6f6578368
Коммит
dace0508cb
|
@ -265,6 +265,7 @@ void Config::CheckParamConflict() {
|
|||
&& num_leaves == kDefaultNumLeaves) {
|
||||
Log::Warning("Accuracy may be bad since you didn't set num_leaves and 2^max_depth > num_leaves");
|
||||
}
|
||||
num_leaves = std::min(num_leaves, 2 << max_depth);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче