Skip to content

Commit

Permalink
release note
Browse files Browse the repository at this point in the history
  • Loading branch information
doug919 committed Feb 24, 2015
1 parent 989e8a0 commit 3b2dbc7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions feelit/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@ def _sum_pattern_vector(self, pf, use_score=False, vlambda=1.0):
temp_vec = freq_vec.values()

sum_vec = map(add, sum_vec, temp_vec)

return [v/len(pf) for v in sum_vec]

return [v/len(pf) for v in sum_vec] if len(pf) != 0 else sum_vec


def sum_pattern_freq_vector(self, pf):
"""
Expand Down
6 changes: 6 additions & 0 deletions release_note
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Version: 0.10.2
Author: Douglas
Date: 2015.2.24

1. New: patter scoring

0 comments on commit 3b2dbc7

Please sign in to comment.