A collection of notebooks leveraging gradient descent to fit a variety of simple datasets. From scratch, for fun.
They require Python >= 3.5.
Note: Some of the notebooks use a homemade implementation of a multilayer perceptron (in lib/mlp.py). The online book Neural Networks and Deep Learning has been of tremendous help to unravel the equations of the backpropagation algorithm.
The following notebooks of increasing difficulty are available.
Fit a line through 2 points using stochastic gradient descent.
Perform regression using stochastic gradient descent.
Weights search
Perform classification using a single layer perceptron.
Weights search
Separate the XOR problem using a multilayer perceptron.
Separate donuts using a multilayer perceptron.
Recognize handwritten digits using a multilayer perceptron with 97.5% accuracy.
Using MNIST dataset.
The required python packages to install to run the notebooks are listed in requirements.txt. Use Python >= 3.5.
If you want to run the cells using Keras, make sure to configure its backend appropriately.










