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

KL divergenve #17

Closed
MADONOKOUKI opened this issue Nov 16, 2020 · 1 comment
Closed

KL divergenve #17

MADONOKOUKI opened this issue Nov 16, 2020 · 1 comment

Comments

@MADONOKOUKI
Copy link

augmix/cifar.py

Line 233 in 9b9824c

p_mixture = torch.clamp((p_clean + p_aug1 + p_aug2) / 3., 1e-7, 1).log()

Hi.
KL divergence is indeed asymmetry distribution.
The code looks to minimize the mixture of distribution to p_original, p_aug1, p_aug2

@hendrycks
Copy link
Contributor

The Jensen-Shannon Divergence is symmetric and can be written in terms of KL Divergences.

@normster normster closed this as completed Sep 6, 2021
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

3 participants