Skip to content

Commit

Permalink
fixed typos in checks (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored and guolinke committed Dec 31, 2017
1 parent 968a353 commit 2e80196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ void BoostingConfig::Set(const std::unordered_map<std::string, std::string>& par
GetDouble(params, "top_rate", &top_rate);
GetDouble(params, "other_rate", &other_rate);
CHECK(top_rate > 0);
CHECK(top_rate > 0);
CHECK(top_rate + top_rate <= 1.0);
CHECK(other_rate > 0);
CHECK(top_rate + other_rate <= 1.0);
GetBool(params, "boost_from_average", &boost_from_average);
GetDeviceType(params, &device_type);
GetTreeLearnerType(params, &tree_learner_type);
Expand Down

0 comments on commit 2e80196

Please sign in to comment.