Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Entropy of a Mixture (cgad.ski)
53 points by cgadski 1 day ago | hide | past | favorite | 5 comments





Really nice presentation of divergences. I made a similar attempt (math + interactive JS visualizations) a long time ago for the Bregman divergences: https://mark.reid.name/blog/meet-the-bregman-divergences.htm...

These visualizations are much nicer than mine though.

Curious fact, the Bregman divergences are a different class of divergences to the f-divergences that intersect at the KL divergence. That is, KL is (essentially) the only divergence that is both an f-divergence and a Bregman divergence. This is basically because log turns a ratio into a difference.


Forgive the meta comment, but is the source for your blog template available? I admire the presentation.

Looks custom with simple HTML & CSS, KaTex for LaTex rendering, and Haxe 4.3.6 for the interactive charts. Never thought to use Haxe in such a way!

Ah... it is rendered client-side. I thought I finally found a server-side workflow for latex rendering. Unfortunately pandoc filters for server-side rendering (katex or mathjax) result in broken layout: off center equations etc.

It's server-side! I render the latex with katex as part of my static generation. See: https://katex.org/docs/api#server-side-rendering-or-renderin....



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: