Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix kullback_leibler doc #1373

Merged
merged 2 commits into from
Jun 2, 2017
Merged

fix kullback_leibler doc #1373

merged 2 commits into from
Jun 2, 2017

Conversation

viciousstar
Copy link
Contributor

the return value range should in <0,+∞>

the return value range should in <0,+∞>
@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add space after ,

@souravsingh
Copy link
Contributor

LGTM, Ready for merging.

@menshikh-iv
Copy link
Contributor

Thank you @viciousstar, sorry for this minor comments, we just want to improve the code style/doc style in gensim.

@menshikh-iv menshikh-iv merged commit 81e90ea into piskvorky:develop Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants