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
ffeae5a6
"vscode:/vscode.git/clone" did not exist on "e6bf4090542207b105f321576c028ca36e15c568"
Commit
ffeae5a6
authored
Jan 22, 2018
by
Guolin Ke
Browse files
fix a silly bug (#1142)
parent
79edd9a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/boosting/gbdt_model_text.cpp
src/boosting/gbdt_model_text.cpp
+1
-1
No files found.
src/boosting/gbdt_model_text.cpp
View file @
ffeae5a6
...
...
@@ -334,7 +334,7 @@ bool GBDT::LoadModelFromString(const char* buffer, size_t len) {
key_vals
[
strs
[
0
]]
=
strs
[
1
];
}
else
if
(
strs
.
size
()
>
2
)
{
if
(
strs
[
0
]
==
"feature_name"
)
{
if
(
strs
[
0
]
==
"feature_name
s
"
)
{
key_vals
[
strs
[
0
]]
=
cur_line
.
substr
(
std
::
strlen
(
"feature_names="
));
}
else
{
// Use first 128 chars to avoid exceed the message buffer.
...
...
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