Skip to content

Commit

Permalink
fix a silly bug (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Jan 22, 2018
1 parent 79edd9a commit ffeae5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boosting/gbdt_model_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ffeae5a

Please sign in to comment.