Skip to content

Commit

Permalink
SVM index begins at 0, append 1 to the number of maximum ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Yassine BEZZA committed Jul 24, 2017
1 parent 9bbe4e6 commit 626d4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svminputfileconn.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ namespace dd
int feature_size() const
{
// total number of indices
return _max_id;
return _max_id + 1;
}

// serialization of vocabulary
Expand Down

0 comments on commit 626d4e1

Please sign in to comment.