Skip to content

Commit

Permalink
change the Check for min_sum_hessian_in_leaf .
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed May 14, 2017
1 parent 358553d commit 1f3c461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void MetricConfig::Set(const std::unordered_map<std::string, std::string>& param
void TreeConfig::Set(const std::unordered_map<std::string, std::string>& params) {
GetInt(params, "min_data_in_leaf", &min_data_in_leaf);
GetDouble(params, "min_sum_hessian_in_leaf", &min_sum_hessian_in_leaf);
CHECK(min_sum_hessian_in_leaf > 1.0f || min_data_in_leaf > 0);
CHECK(min_sum_hessian_in_leaf > 0 || min_data_in_leaf > 0);
GetDouble(params, "lambda_l1", &lambda_l1);
CHECK(lambda_l1 >= 0.0f);
GetDouble(params, "lambda_l2", &lambda_l2);
Expand Down

0 comments on commit 1f3c461

Please sign in to comment.