Skip to content

Entropy of a Mixture

cgad.ski
54 pointscgadski5 comments
On HN

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....

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.