Unit 8 · AI & the Impact of Computing · Lesson 8.2

Training Data Decides Everything

Train a classifier on bright photos of one thing and dark photos of another, and it will learn the wrong lesson perfectly. Today you watch it happen — and diagnose it before your teacher does.

Big Idea 5 — Impact of ComputingCED 5.3 · callback to 5.10

On this page: AP-TESTABLE sections marked with a BI5 tag  ·  CONTEXT — NOT ON THE AP EXAM anything with this label. Exam-tagged questions never test the context material.

Before this lesson

No reading — this page is the reading. Retrieve 5.10: who was missing from the dataset? Today is the consequence of that answer.

1

Where We Are

People→ Bits→ Programs→ Internet→ Security→ Big Data→ Impact

Impact, rooted in Big Data. Unit 5 asked who’s missing from a dataset. A model trained on it inherits the gap.

2

The Hook

Same classifier. Worse photos. Retrain yesterday’s classifier: twenty photos of one object in bright light, three of the other in shadow. Then hold up the first object in the shadow. Watch it fail.

Before anyone explains: what did it actually learn?

3

The Idea

CONTEXT — NOT ON THE AP EXAM

A model can only learn patterns that are in its training set. It has no idea what was left out. If every apple in training was brightly lit and every orange was in shadow, the easiest pattern to learn is “bright = apple” — and the model will learn it, confidently. It will do great on photos like its training data and fail on anything else. Working on new, different data is called generalization; memorizing the quirks of the training set instead is (informally) overfitting.

AP-TESTABLE

The exam’s version: computing innovations can reflect existing human biases because of biases in the data they use. If the data under-represents a group, the system can work worse for that group — without anyone intending it.

Back to 5.10’s pothole app: reports came mostly from neighborhoods where people had the app. A model trained on those reports would learn that potholes happen in wealthy neighborhoods — and send repair crews accordingly.

4

Try It — Pick the Training Set

CONTEXT — NOT ON THE AP EXAM

A classifier tells apples from oranges using two numbers per photo: color (1 = red, 3 = orange) and brightness (3 = shadow, 8 = bright). It predicts whichever fruit’s training average is closer. Pick a training set, then look at the test photos.

training set:
5

Vocabulary

training set Impact
The collection of examples a model learns from. CONTEXT — NOT ON THE AP EXAM
generalization Impact
How well a model works on new data unlike its training examples. CONTEXT — NOT ON THE AP EXAM
overfitting (informal) Impact
Learning the quirks of the training set instead of the real pattern. CONTEXT — NOT ON THE AP EXAM
6

Check

Five questions. Find what the data taught — not what the builders meant.

0 of 5 answered
7

Impact Check

Design a training set — then break a partner’s

Pick a task (“is this a dog or a wolf?”, “is this handwriting a 1 or a 7?”). List what your training photos would show. Swap with a partner and find one kind of input their set is missing. The missing input is where their model would fail — and who it fails.

8

Connections

Came from 5.10 — bias and what’s missing. A model turns a gap in the data into a gap in the decisions.
Came from 8.1 — rules come from examples. Lopsided examples, lopsided rules.
Next in 8.3 — you build a classifier and measure exactly how much a skewed training set costs — and who pays.
Returns in 8.4 — biased data is the first of three sources of computing bias.
← 8.1 What Machine Learning Actually Is