Skip to content

Commit

Permalink
Merge pull request #1373 from viciousstar/patch-1
Browse files Browse the repository at this point in the history
fix kullback_leibler doc
  • Loading branch information
menshikh-iv authored Jun 2, 2017
2 parents cc74b66 + ee3c6ca commit 81e90ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/matutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def isbow(vec):
def kullback_leibler(vec1, vec2, num_features=None):
"""
A distance metric between two probability distributions.
Returns a distance value in range <0,1> where values closer to 0 mean less distance (and a higher similarity)
Returns a distance value in range <0, +∞> where values closer to 0 mean less distance (and a higher similarity)
Uses the scipy.stats.entropy method to identify kullback_leibler convergence value.
If the distribution draws from a certain number of docs, that value must be passed.
"""
Expand Down

0 comments on commit 81e90ea

Please sign in to comment.