You will check the slopes a backward pass gives against slopes found by nudging each weight, then write the training loop that takes the digits network to about 95 in 100 on the pictures kept aside, and train lesson 2's darts with it.

About 40 minutes. You do it on your own computer. You need your own computer, with uv (free); Windows, Linux or a Mac with Apple silicon, since PyTorch no longer ships for Intel Macs; about 1 GB of disk for PyTorch.

  1. Lesson 4's slopesRun it
  2. The same slopes, by a nudgeYour turn
  3. Every slope of the digits networkYour turn
  4. The loop, in its orderYour turn
  5. Watch the 360Your turn
  6. The darts, trainedOn your own
Terminal
curl -LsSf https://astral.sh/uv/install.sh | sh
cd learn-deep-learning/labs/dl-lab-train-digits/starter
uv sync

See it on GitHub

When you have run it

After step 5, loop.py prints 30 epochs. What share of the 360 is right after the last one, in percent?

%

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 .