Week 1 ยท Session 1 ยท 2 hours

Machines That Learn

Today you train a real image classifier in Python and look inside its brain. You’ll leave saying: “I trained a neural network in code today.”

Begin โ†’
Today you will

Three real wins

๐Ÿ–ผ๏ธ

Train & evaluate

Build an image classifier in Python and report its held-out accuracy.

๐ŸŽ›๏ธ

Tune two knobs

Change two hyperparameters and explain what happened and why.

๐Ÿ”ค

Speak the language

Explain features, labels, and loss — and how data shapes behavior.

Remember the contract: FEATURES = the numbers in (each pixel) ยท LABEL = the answer (which digit) ยท LOSS = the wrongness score ยท TRAINING = nudging weights to shrink loss.
๐Ÿ“„ Prefer paper, or working solo? Grab the comprehensive self-guided Session 1 pack (PDF) — every step, the real copy-paste Python, worked examples, checkpoints, troubleshooting, and a record sheet. No coach required.
The Arc ยท check each off as you go in Colab (NB1)

Your step-by-step for today

Model Autopsy

Read a confusion matrix like an engineer

A confusion matrix is a report card with detail: rows = the truth, columns = what the model said. The green diagonal is where it got things right. Here’s a real one from a digit classifier — tap a row to compute that digit’s recall (of all the true 8s, how many did it catch?).

true \ said1789tap โ†’
142300recall?
743902recall?
810386recall?
901540recall?
Tap a row’s “recall?” cell to see the math.
๐Ÿ”Ž You just computed per-class recall by hand. Next week you’ll use this exact tool to catch a deliberately sabotaged model that hides its harm behind a good overall score.

Which pair of digits gets confused most โ€” and why might that be (think about their SHAPES)?

Knob experiments โ€” PREDICT before you run

Two knobs that change everything

In your notebook you’ll change these settings and re-train. First guess what happens, then tap to reveal what usually does — and why.

Law #1 ยท earned today
The data is the teacher.

100 examples made a worse model than 1,347. Now connect it: what happens when a face-recognition system is trained mostly on one demographic? (Hold that thought โ€” it’s Week 2.)

Circle-Up ammo

Confidently wrong vs. unsurely wrong

A model can be wrong and sure of itself, or wrong and hesitant. One of those is far more dangerous in the real world.

Which scares you more in a self-driving car’s vision system?

๐ŸŽฏ

Badge: Model Trainer

Earn it: digit classifier trained in code; accuracy from a proper split; two knobs tuned and explained; your numbers written down.

๐ŸŽ’ Mission โ€” before next session (1โ€“2 hrs)
  • Finish one NB1 stretch mission (confidence bars / class record / accuracy-vs-data-size plot).
  • Choose & save your Week 3 corpus: 300+ words you love and have the right to use (lyrics, your writing, public-domain).
  • Find one real-world AI-failure article and bring the source.