cd /news/machine-learning/micromlp-a-from-scratch-neural-net-t… · home topics machine-learning article
[ARTICLE · art-115485] src=julin.ai ↗ pub= topic=machine-learning verified=true sentiment=· neutral

micromlp: A From-Scratch Neural Net That Predicts Housing Prices

Developer soasme released micromlp, a single-file Python neural network with no dependencies that predicts California housing prices using a 2-layer MLP and from-scratch automatic differentiation, inspired by Karpathy's microgpt. The project aims to close the gap between using PyTorch's .backward() and understanding backpropagation by hand.

read1 min views1 publishedAug 28, 2026

I built micromlp: a single file of Python, no dependencies, no PyTorch. It downloads a real dataset, builds a 2-layer MLP, implements automatic differentiation from scratch, trains with gradient descent, and makes predictions. The task: the California housing dataset from chapter 2 of Hands-On Machine Learning — predict a district’s median house value from its census stats.

This is inspired by Karpathy’s microgpt. I’ve used PyTorch for years. I’d never actually written backprop by hand. There’s a difference between knowing .backward()

exists and knowing what it does when you call it — I found it worth closing that gap once, on a toy, instead of taking it on faith forever.

── more in #machine-learning 4 stories · sorted by recency
── more on @soasme 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/micromlp-a-from-scra…] indexed:0 read:1min 2026-08-28 ·