← DashboardMODULE 6 · ABOUT 4 HOURSVerifying 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
- Why AI code needs checking
- Cheap checks that catch most bugs
- Writing your first tests
- Testing a model, not just a function
- 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 browserNotebook coming soon.