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
8092c9fe
Unverified
Commit
8092c9fe
authored
Jun 09, 2020
by
Guolin Ke
Committed by
GitHub
Jun 09, 2020
Browse files
Update tree.cpp (#3148)
parent
ce95d9ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/io/tree.cpp
src/io/tree.cpp
+1
-1
No files found.
src/io/tree.cpp
View file @
8092c9fe
...
@@ -585,7 +585,7 @@ Tree::Tree(const char* str, size_t* used_len) {
...
@@ -585,7 +585,7 @@ Tree::Tree(const char* str, size_t* used_len) {
}
}
if
(
key_vals
.
count
(
"leaf_weight"
))
{
if
(
key_vals
.
count
(
"leaf_weight"
))
{
leaf_weight_
=
Common
::
StringToArray
Fast
<
double
>
(
key_vals
[
"leaf_weight"
],
num_leaves_
);
leaf_weight_
=
Common
::
StringToArray
<
double
>
(
key_vals
[
"leaf_weight"
],
num_leaves_
);
}
else
{
}
else
{
leaf_weight_
.
resize
(
num_leaves_
);
leaf_weight_
.
resize
(
num_leaves_
);
}
}
...
...
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