r/Python • u/AutoModerator • Oct 04 '26
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
23
Upvotes
r/Python • u/AutoModerator • Oct 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
1
u/PanelReader Oct 21 '26
I've been learning neural network mathematics and implemented a small XOR network using Python and NumPy.
The project includes:
Forward propagation with ReLU and sigmoid
Backpropagation using the chain rule
Gradient descent with MSE loss
Numerical checks for all 13 gradients
Automated tests and mathematical diagrams
After 5,000 epochs, the network classified all four XOR training inputs correctly, with an MSE of 0.004715.
GitHub: https://github.com/Vaibh37/Neural-Network
AI helped structure this explanation. I worked through the mathematics, implementation, and testing myself.
Would appreciate feedback on the code and calculations.