Unverified Commit 520247cc authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

fix unsorted eval_at (#2206)

* fix unsorted eval_at

* Update config.cpp
parent b1e5a843
...@@ -169,6 +169,9 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) { ...@@ -169,6 +169,9 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) {
GetTreeLearnerType(params, &tree_learner); GetTreeLearnerType(params, &tree_learner);
GetMembersFromString(params); GetMembersFromString(params);
// sort eval_at
std::sort(eval_at.begin(), eval_at.end());
if (valid_data_initscores.size() == 0 && valid.size() > 0) { if (valid_data_initscores.size() == 0 && valid.size() > 0) {
valid_data_initscores = std::vector<std::string>(valid.size(), ""); valid_data_initscores = std::vector<std::string>(valid.size(), "");
......
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