Skip to content

Commit

Permalink
consider max_depth for histogram_pool_size (#2216)
Browse files Browse the repository at this point in the history
* consider max_depth for histogram_pool_size

* Update serial_tree_learner.cpp

* Update config.cpp

* Update serial_tree_learner.cpp
  • Loading branch information
guolinke committed Jun 5, 2019
1 parent b6f6578 commit dace050
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/io/config.cpp
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit dace050

Please sign in to comment.