Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
2bf9a0f1
Unverified
Commit
2bf9a0f1
authored
Sep 26, 2019
by
Guolin Ke
Committed by
GitHub
Sep 26, 2019
Browse files
remove the duplicate data path (#2432)
* fix * fix the bug
parent
fe9f292c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/io/config.cpp
src/io/config.cpp
+13
-0
No files found.
src/io/config.cpp
View file @
2bf9a0f1
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment