Lab 1 of 7about 40 minutes
A digit reader, part by part
It uses what you learned in The artificial neuron, Layers and networks and Softmax and cross-entropy.
You will build the course's digits network one piece at a time, from a single neuron to its ten scores, turn the scores into chances and a loss by hand, and check its loss before it learns against a fair guess of 2.30.
- The digitsRun it
- One neuron, by handYour turn
- The network, and its first errorYour turn
- Two layers with no bend are oneYour turn
- Softmax and the loss, by handYour turn
- The loss at the start, and softmax twiceYour turn
- A digit reader for bigger picturesOn your own
curl -LsSf https://astral.sh/uv/install.sh | sh
cd learn-deep-learning/labs/dl-lab-digit-reader/starter
uv syncWhen you have run it
After step 7, how many weights does your network for pictures of 28 by 28 have?
Run on macOS on an M1 Max, uv 0.11.15, Python 3.12, PyTorch 2.15.0, NumPy 2.5.5, scikit-learn 1.9.1. Checked on .
