Lab 03 · Homework 03

MNIST, and what the code is doing.

AI can write the HW3 code quickly. The optional materials here help you read it: predict what a cell will do, check the numbers by hand, change one thing, and explain the result in your own words.

Optional · printable

Companion worksheets

Seven short worksheets, one for each HW3 question. Predict, trace by hand, tweak, and explain what your generated code does.

Open the worksheets →
Optional · notebook

Python warm-up

No coding background needed. Twelve short sections with self-checking exercises, from "what is a variable" to a five-step gradient descent loop.

Open in Colab →
Bonus reading

A small cost for large weights

Add an L2 penalty to the Chapter 4 loss, and see how it discourages overfitting.

Read the explainer →
Stretch reading

Binary cross-entropy

Compare the standard classification loss with Chapter 4's mnist_loss.

Read the explainer →
Where should I run a notebook?

To run the warm-up outside Colab, download the notebook file.