"vscode:/vscode.git/clone" did not exist on "e6bf4090542207b105f321576c028ca36e15c568"
Commit ffeae5a6 authored by Guolin Ke's avatar Guolin Ke
Browse files

fix a silly bug (#1142)

parent 79edd9a6
......@@ -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_names") {
key_vals[strs[0]] = cur_line.substr(std::strlen("feature_names="));
} else {
// Use first 128 chars to avoid exceed the message buffer.
......
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