Lab 3 of 7about 45 minutes
A deep digit reader that doesn't memorize
It uses what you learned in Vanishing gradients and residual connections, Normalization layers and Dropout, weight decay and early stopping.
You will make the digits network twenty layers deep and still have it learn, with a skip round each layer and a norm before it, then keep a run with wrong labels from learning them by heart with dropout, weight decay and early stopping.
- Twenty plain layersRun it
- A skip round each layerYour turn
- A norm before each blockYour turn
- A run that learns its mistakesYour turn
- Dropout, and scoring itYour turn
- Weight decayYour turn
- All three at onceOn your own
curl -LsSf https://astral.sh/uv/install.sh | sh
cd learn-deep-learning/labs/dl-lab-deep-reader/starter
uv syncWhen you have run it
Of the three fixes on their own, in steps 4 to 6, which let the network learn the fewest wrong labels?
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 .
