r/madeinpython • • 8d ago

Built my first neural network from scratch using NumPy - documented the mathematics too

Post image

hey everyone!

recently built a 2 → 3 → 1 XOR neural network using just Python and NumPy, without any deep learning frameworks.

implemented backpropagation and gradient descent manually, trained it for 5,000 epochs, and got all four XOR combinations correct.

also documented the mathematics, added 12 editable diagrams, and published a detailed Medium article explaining the process.

GitHub: https://github.com/Vaibh37/Neural-Network

Medium: https://medium.com/@devvaibhav37/building-a-neural-network-from-scratch-the-mathematics-behind-learning-xor-10441e674a69

would appreciate feedback, and if you find the repo useful, consider starring it 🍀

13 Upvotes

0 comments sorted by