1.4 Data as the raw material

Week 1
Pick a depth · ✨ generates it for this lecture

Data as the raw material

If the previous lecture's punchline was "modern AI learns from data," this one asks: what is data, and why does it matter so much?

What counts as data

Data is just recorded examples of the world. It comes in two broad shapes. Structured data is neatly organized in tables — rows of customers with columns for age, purchases, and so on. Unstructured data is everything else: text, images, audio, video. The deep-learning revolution was largely a revolution in handling unstructured data, which is the vast majority of what exists.

Labels

For many tasks the examples need labels — the correct answer attached to each input. A photo labeled "cat," an email labeled "spam," a sentence labeled "positive." Labels are how a model knows what it is supposed to learn, and they are often the expensive, slow, human part of building an AI system. Much of the cost of AI is not computing; it is people labeling data.

Garbage in, garbage out

The most important rule about data: a model can be no better than the data it learns from. Garbage in, garbage out. Good training data has three properties worth memorizing — it is accurate (correctly recorded and labeled), representative (it looks like the real situations the model will face), and sufficient (there is enough of it to learn the pattern). A model trained only on photos taken in daylight will fail at night, not because the algorithm is weak but because the data lied about the world.

A worked example

The modern image-recognition boom was triggered by a dataset, not an algorithm. ImageNet, assembled around 2009, contained over a million hand-labeled images across a thousand categories. It gave researchers a large, consistent, representative target to train and compete on — and in 2012 a deep network trained on it crushed the competition, launching the deep-learning era. The lesson the field took away: the data was as important as the model.

Tip: highlight any passage above to ask the tutor about it, or to generate practice problems specifically on what you selected.
Ask the tutor for an explanation, a worked example, or a hint. Highlight a passage on the left to ground the question in that text.