Skip to content

Commit b1dc68f

Browse files
committed
fix
1 parent f52d331 commit b1dc68f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/deep_model.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ int main(int argc, char* argv[]) {
100100
std::vector<std::string> tokens;
101101
util::split(feature, ':', tokens);
102102
int64 fieldid = std::stoi(tokens[0]);
103-
int64 featureid std::stoi(tokens[1]);
103+
int64 featureid = std::stoi(tokens[1]);
104104
float value = std::stof(tokens[2]);
105105
if (instance.find(fieldid) == instance.end()) {
106106
std::unordered_map<int64, float> f;
@@ -134,6 +134,8 @@ int main(int argc, char* argv[]) {
134134
}
135135
}
136136
} else {
137+
indice.push_back(0);
138+
indice.push_back(0);
137139
fid_list.push_back(dict.field2missid().find(fieldid)->second);
138140
fval_list.push_back(0);
139141
}

0 commit comments

Comments
 (0)