Unverified Commit 2bf9a0f1 authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

remove the duplicate data path (#2432)

* fix

* fix the bug
parent fe9f292c
......@@ -234,6 +234,19 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) {
}
CHECK(valid.size() == valid_data_initscores.size());
if (valid_data_initscores.empty()) {
std::vector<std::string> new_valid;
for (size_t i = 0; i < valid.size(); ++i) {
if (valid[i] != data) {
// Only push the non-training data
new_valid.push_back(valid[i]);
} else {
is_provide_training_metric = true;
}
}
valid = new_valid;
}
// check for conflicts
CheckParamConflict();
......
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