// zero dependencies. just math.
Single-file, zero-dependency Python implementations of the algorithms that power modern AI.
Every script runs with python script.py — no frameworks, no abstractions.
Each script trains a model from scratch and performs inference. Read top-to-bottom like a tutorial.
Structured tracks through the collection. Pick one based on your interest or time budget.
No local imports, no utils.py, no companion files. Everything in one place.
Python standard library only. If it needs pip install, it doesn't belong here.
python script.py runs the full lifecycle. No setup, no config, no environment.
30-40% comment density. Math-to-code mappings. Why, not what. Read top-to-bottom like a tutorial.
random.seed(42) at the top of every script. Same input, same output, every time.
Every script completes on a laptop CPU. No GPU required. No cloud. No excuses.
47 single-file Python implementations of AI/ML algorithms. Zero dependencies, pure stdlib. The core collection.
Manim-powered algorithm visualizations. Animated explainers showing each algorithm's mechanics in motion.
This website. Algorithm catalog, learning paths, and live GitHub stats. Pure static HTML/CSS/JS.