r/deeplearning • u/PanelReader • 12h ago
built a neural network from scratch using numpy to understand backpropagation
hey everyone!
recently built a 2 → 3 → 1 XOR neural network using NumPy, without PyTorch or TensorFlow.
wanted to understand backpropagation properly, so I implemented the mathematics and gradient descent manually.
trained it for 5,000 epochs and achieved 4/4 correct classifications.
the repo includes mathematical derivations, training visualizations and 12 editable diagrams.
also wrote a detailed Medium article explaining the process.
GitHub: https://github.com/Vaibh37/Neural-Network
would appreciate feedback on the implementation. if you find it useful, consider starring the repo 🍀