Best AI News — Updated Every 3 Hours
Story Page
← All Stories
Home Community Story
Community

[P] no-magic: 47 AI/ML algorithms implemented from scratch in single-file, zero-dependency Python

Via r/MachineLearning
Monday, Mar 23, 2026 · 12:36PM
Summary

I've been building no-magic — a collection of 47 single-file Python implementations of the algorithms behind modern AI. No PyTorch, no TensorFlow, no dependencies at all. Just stdlib Python you can read top to bottom. Every script trains and infers with python script.py. No GPU, no setup, no args. R

Continue reading the full article
Read at r/MachineLearning
www.reddit.com
Back to all stories