r/PythonLearning • • 3d ago

Neural Network built from scratch with NumPy

Post image

This 👉interactive 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 demo visualizes 1,000 training steps of a neural network learning to solve the XOR problem. Watch how the weights evolve as the network learns.

Use the "Step Into" button to explore the implementation in neural_net.py and see the details of the forward and back-propagation. Follow the mathematics behind the implementation in 📑this PDF.

No PyTorch or TensorFlow — just Python, NumPy and mathematics.

Explore 👉other 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 visualizations.

9 Upvotes

5 comments sorted by

1

u/mayar3141 19h ago

That's sick man!!! What are you using for visualization?

2

u/Sea-Ad7805 18h ago

Thanks, check memory_graph.

1

u/mayar3141 18h ago

Is this model scalable?

1

u/Sea-Ad7805 18h ago

If you remove the things you're not interested in: https://github.com/bterwijn/memory_graph#collapse-type

1

u/mayar3141 18h ago

Thanks man