We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f52d331 commit b1dc68fCopy full SHA for b1dc68f
src/deep_model.cc
@@ -100,7 +100,7 @@ int main(int argc, char* argv[]) {
100
std::vector<std::string> tokens;
101
util::split(feature, ':', tokens);
102
int64 fieldid = std::stoi(tokens[0]);
103
- int64 featureid std::stoi(tokens[1]);
+ int64 featureid = std::stoi(tokens[1]);
104
float value = std::stof(tokens[2]);
105
if (instance.find(fieldid) == instance.end()) {
106
std::unordered_map<int64, float> f;
@@ -134,6 +134,8 @@ int main(int argc, char* argv[]) {
134
}
135
136
} else {
137
+ indice.push_back(0);
138
139
fid_list.push_back(dict.field2missid().find(fieldid)->second);
140
fval_list.push_back(0);
141
0 commit comments