Commit 2e801967 authored by Nikita Titov's avatar Nikita Titov Committed by Guolin Ke
Browse files

fixed typos in checks (#1158)

parent 968a353f
...@@ -439,8 +439,8 @@ void BoostingConfig::Set(const std::unordered_map<std::string, std::string>& par ...@@ -439,8 +439,8 @@ void BoostingConfig::Set(const std::unordered_map<std::string, std::string>& par
GetDouble(params, "top_rate", &top_rate); GetDouble(params, "top_rate", &top_rate);
GetDouble(params, "other_rate", &other_rate); GetDouble(params, "other_rate", &other_rate);
CHECK(top_rate > 0); CHECK(top_rate > 0);
CHECK(top_rate > 0); CHECK(other_rate > 0);
CHECK(top_rate + top_rate <= 1.0); CHECK(top_rate + other_rate <= 1.0);
GetBool(params, "boost_from_average", &boost_from_average); GetBool(params, "boost_from_average", &boost_from_average);
GetDeviceType(params, &device_type); GetDeviceType(params, &device_type);
GetTreeLearnerType(params, &tree_learner_type); GetTreeLearnerType(params, &tree_learner_type);
......
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