Skip to content

Instantly share code, notes, and snippets.

View ariseff's full-sized avatar

Ari Seff ariseff

View GitHub Profile
@ariseff
ariseff / asymkl.py
Created September 24, 2020 20:09
Visualizing KL divergence asymmetry with manim
"""
Source code for this visualization of KL divergence asymmetry:
https://twitter.com/ari_seff/status/1303741288911638530
KL computation is based on
https://tuananhle.co.uk/notes/reverse-forward-kl.html
Install manim (https://github.com/3b1b/manim) and run with:
$ manim asymkl.py AsymKL -pl
"""