← Dashboard
MODULE 6 · ABOUT 4 HOURS

Verifying the code

Tests, sanity checks and leak detectors for AI-written code.

This module is an outline. The full lecture, widget, quiz and lab are on the way.

Lecture

What you’ll learn

  • Read before you run
  • Shape checks with assert
  • Known-answer tests on tiny examples
  • The overfit-one-batch test for models
  • Automated leak detection
  • Fixing random seeds so results repeat

Lecture outline

  1. Why AI code needs checking
  2. Cheap checks that catch most bugs
  3. Writing your first tests
  4. Testing a model, not just a function
  5. Making results reproducible

Discover: Bug Hunt

An AI-written notebook with five planted bugs. Find them all.

Interactive widget coming soon.

Quiz

8 to 10 questions. 80% to pass, unlimited retakes.

Quiz coming soon.

Lab: Test it before you trust it

Write tests for your Module 5 code, then find and fix the planted bugs.

Runs in your browser

Notebook coming soon.