Skip to course content
Free PyTorch course

Advanced Deep Learning with PyTorch

Module 06 Activity

Scenario

Build an image classifier and evaluate it the way an imbalanced real dataset demands.

Task

  1. Show that a convolution gives the same response to a pattern in two different corners.
  2. Compute output sizes for four convolution configurations using the size rule, then verify each.
  3. Trace shapes layer by layer through a CNN and measure the flatten width rather than deriving it.
  4. Normalise a batch per channel and demonstrate a flip is reversible.
  5. Evaluate on an imbalanced three-class problem. Report accuracy, then per-class recall.
  6. Rank errors by confidence and list the three most confident mistakes.

Deliverable

A classifier report: architecture, parameter count, accuracy, majority baseline, confusion matrix, and your three worst errors.

Check your work

The habit

Read per-class recall before accuracy. Accuracy is a summary of the majority class.