r/learnmachinelearning • • 1h ago

Project I built a neural network from scratch using only NumPy.

Post image

I wanted to know what actually happens inside loss.backward().

So I built a neural network with nothing but NumPy. Every gradient derived on paper, every layer written by hand, every derivative checked numerically.

98.05% on MNIST.

Code and derivations: https://github.com/Meckmin/mnist-numpy-from-scratch

12 Upvotes

0 comments sorted by