forked from piskvorky/gensim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…vorky#1860) * fix: fix bugs in hellinger distance computing This changes fix the bugs that return different distance when we call hellinger(x, y) and hellinger(y, x). The cause of this bug is that we compute the distance based on one distribution's index previously, but we should iterate all the index appears in two probability distributions. * rename variable + fix union indices error in python3 * fix and add tests for hellinger distance * fix the currrent test for different length BOW inputs * add a test for symmetrical inputs
- Loading branch information
1 parent
b83936c
commit aac7a75
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters