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
520247cc
Unverified
Commit
520247cc
authored
Jun 02, 2019
by
Guolin Ke
Committed by
GitHub
Jun 02, 2019
Browse files
fix unsorted eval_at (#2206)
* fix unsorted eval_at * Update config.cpp
parent
b1e5a843
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/io/config.cpp
src/io/config.cpp
+3
-0
No files found.
src/io/config.cpp
View file @
520247cc
...
@@ -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
(),
""
);
...
...
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