Abstract Nonsense

Posts tagged with "Mathematics"

Building animations in Manim with LLMs

Manim is a Python animation engine designed to build animated mathematical explainer videos (examples here) created by Grant Sanderson of the superb YouTube channel 3Blue1Brown.

A couple years ago I wanted to write my own mathematics explainer videos with Manim, but found the learning curve to be pretty steep at the outset.

The user experience has since improved dramatically - in large part because of the Manim Community Edition, but also because there’s now enough samples in recent LLM training runs that they can produce workable Manim code!

Inverse UMAP transforms

TIL that the dimensionality reduction algorithm UMAP1 has support for inverse transforms!

Naturally, these are lossy inverses, but being able to generate novel examples of, for example, handwritten digits (yep, classic MNIST once again) is exceedingly cool.

The example images of handwritten digits here are sampled from the compressed planar space, and “inverted” into the original “image space”.

On a related note, the whole explanatory article for UMAP is a beautiful work of exposition, full of rich ideas that make one ponder deeply. I only wish I understood everything in here end-to-end.