[parser] Averaged perceptron training

This commit is contained in:
Al
2015-09-10 10:25:52 -07:00
parent 0ddf50cb5f
commit 6a5b01b51b
4 changed files with 413 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ inline double_array *averaged_perceptron_predict_scores(averaged_perceptron_t *s
continue;
}
for (int col = indptr[feature_id]; col < indptr[feature_id+1]; col++) {
for (int col = indptr[feature_id]; col < indptr[feature_id + 1]; col++) {
uint32_t class_id = indices[col];
scores[class_id] += data[col];
}