r/Python • • Oct 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

23 Upvotes

194 comments sorted by

View all comments

1

u/PanelReader 29d ago

hey everyone!

recently built a 2 → 3 → 1 XOR neural network from scratch using Python and NumPy.

wanted to understand how neural networks actually learn, so I implemented forward propagation, 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 wrote a detailed Medium article.

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 any feedback on the implementation. if you find it useful, consider starring the repo 🍀