How ismlrn/cnn-scratch works
Project type and purpose
• This is a machine-learning demonstration project implementing a simple Convolutional Neural Network (CNN) from scratch, using only NumPy.
• Its goal is educational: to show how each layer (conv2d, relu, maxpool2d, flatten, dense, softmax) can be handcrafted without TensorFlow or PyTorch.
File structure
• All files live at the top level:
• .py modules (cnn-forward.py, cnn-full.py, etc.) encapsulate the core layer implementations and orchestration.
• Notebooks (.ipynb) provide interactive demos of forward and backward passes.
• There are no subdirectories or external services—everything is a local, linear pipeline of functions.
• The only external dependency is NumPy.
README for additional insights
• It confirms the six basic building blocks (conv2d, relu, maxpool2d, flatten, dense, softmax).
• It mentions cnn-full.py as the “main” script that chains them together with forward and backward passes.