A complete walkthrough of coding a neural network from scratch for MNIST digit classification, achieving over 93% accuracy with publicly available code.
This video provides a complete walkthrough of building a fully connected neural network from scratch to classify handwritten digits from the MNIST dataset. It explains key concepts such as weight matrix conventions, the addition of a dedicated bias neuron, and one-hot encoding labels for multi-class output. The training process is detailed through nested loops over epochs and image-label pairs, using forward propagation with a sigmoid activation and backpropagation to adjust weights based on mean-squared error. A notable simplification in the output-layer delta calculation is highlighted, while hidden layers require the sigmoid derivative for error propagation. The final trained network achieves over 93% accuracy and correctly identifies a handwritten "three," with the full code made publicly available for viewers.
output – label, so the error value is not needed at this step (though it becomes necessary for other cost functions).h * (1 - h)), obtained by transposing the updated weight matrix and multiplying with output deltas; these steps repeat across all hidden layers until every weight is updated.Load the full timestamped transcript on demand and click any time to jump in the video.