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

negative kNN based divergences #38

Closed
changhoonhahn opened this issue Nov 21, 2017 · 1 comment
Closed

negative kNN based divergences #38

changhoonhahn opened this issue Nov 21, 2017 · 1 comment

Comments

@changhoonhahn
Copy link

I've been using KNNDivergenceEstimator to estimate the divergence between two samples. This might be a dumb question, but how can the renyi-alpha divergences estimates be negative?

I understand that if I set clamp=True then it imposes a limit, but I'm not sure how the divergence estimator from B. Poczos, L. Xiong, D. J. Sutherland, & J. Schneider (2012) could return negative values.

Thanks!

@djsutherland
Copy link
Owner

So if you look at http://www.gatsby.ucl.ac.uk/~dougals/papers/cvpr-12.pdf: the alpha-beta divergence estimator (3) will always be positive. But the Renyi divergence is 1/(alpha-1) log D_{alpha-1,1-alpha}. So for the usual situation of alpha < 1, the corresponding Renyi estimator is negative if the estimate of D_{alpha-1,1-\alpha} > 1.

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

No branches or pull requests

2 participants