This file contains hidden or 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
""" | |
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 | |
""" |