I built a NumPy autodiff engine and trained an MNIST MLP to 97.91%
Ariadne is a small framework I wrote in NumPy. Its tensors build a computation graph, and backward() walks that graph in reverse to calculate gradients. It includes Linear, ReLU, SGD, and Adam. One detail worth inspecting is bias addition: NumPy broadcasts one bias vector across the batch, so the b…
Read the full story at r/learnmachinelearning ↗
Timeline · 1 report
- 2026-09-29 22:33 · r/learnmachinelearning
I built a NumPy autodiff engine and trained an MNIST MLP to 97.91%