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 JS Divergence Calculation #23

Open
Micky774 opened this issue Sep 1, 2021 · 0 comments
Open

Fix JS Divergence Calculation #23

Micky774 opened this issue Sep 1, 2021 · 0 comments
Labels
wontfix This will not be worked on

Comments

@Micky774
Copy link
Collaborator

Micky774 commented Sep 1, 2021

Current implementation (see below) is (KL(p||q)+KL(q||p))/2 which is not JS divergence. Should be (KL(p||M)+KL(q||M))/2 where M=(p+q)/2

Current implementation:

ornet/src/measure.py

Lines 54 to 56 in 6dd29a3

pq = multivariate_kl(m1, s1, m2, s2)
qp = multivariate_kl(m2, s2, m1, s1)
return 0.5 * (pq + qp)

@Micky774 Micky774 added the wontfix This will not be worked on label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant