Course contents · Chapter 1
Building with AIChapter 1 of 42 min reading + practice

Turn requirements into observable checks

A test needs an input, an expected behaviour and a reason that behaviour matters.

A test needs an input, an expected behaviour and a reason that behaviour matters.

Include cases where the system should ask, decline or hand off. A useful evaluation is not just a list of questions with pleasing answers.

The bigger picture

An AI system includes data handling, model behaviour and application decisions. Testing must examine all of them. A correct model response is not enough if the application exposes private information or fails to handle missing input.

  1. Specify behaviour
  2. Create cases
  3. Run checks
  4. Investigate failures
A working model for this course. Use it to locate where a decision or failure occurs.

Concepts to keep close

Regression test
A repeatable check intended to reveal whether a change broke established behaviour.
Evaluation set
Cases selected to assess defined aspects of model or system performance.
Oracle
The rule, reference or judgment used to determine whether a result is acceptable.

Reasoning through the problem

Map each requirement to a test.

Include ordinary and difficult cases.

State expected behaviour before observing outputs.

Use the idea carefully

Define expected behaviour before collecting outputs. Separate deterministic checks from judgments requiring a rubric. Include boundary, invalid-input and changed-condition cases. Record the system version and relevant settings. Compare against a baseline and inspect failures; a single successful demonstration is not a sufficient test report.

Further reading & course resources

Original documentation and teaching references for further investigation.