"python-package/vscode:/vscode.git/clone" did not exist on "1d59a0456669d4f4d087da88f9cc0aa8b963342a"
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) { ...@@ -234,6 +234,19 @@ void Config::Set(const std::unordered_map<std::string, std::string>& params) {
} }
CHECK(valid.size() == valid_data_initscores.size()); 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 // check for conflicts
CheckParamConflict(); 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