Open Agent School · Public worked example

Data augmentation: meaning and example

Welcome! Take one idea with you today.

Data augmentation creates modified training examples using transformations that should preserve the task's label, or update the label correctly. It encourages a model to handle expected variations rather than memorize one presentation.

Picture it: For a toy classifier distinguishing dented from intact parcels, a small brightness change may preserve the label. Cropping out the only dent does not. A visually plausible new image can still be an invalid labeled example.

What is easy to mix up?

Realism is insufficient. The transformation must preserve task-relevant information and label validity; flipping a directional arrow can change its correct class.

Teaching example by Open Agent School. Source: Dive into Deep Learning: Image Augmentation.