Home/Learn/3D lessons/Inside a training set

Inside a training set.

See how examples and labels decide what a model learns. Turn the 3D model, then change a small training set, train a real model with one split and test it on objects it has not seen. The guide how machine learning works gives the background.

Building the 3D model
The 3D model of the lesson: four round platforms in a row, with sixteen coral and green objects, their label tiles, a stack of plates for training and new objects.The 3D model of the lesson: four round platforms in a row, with sixteen coral and green objects, their label tiles, a stack of plates for training and new objects.

Drag to turn the model. Click it once, then scroll to zoom. On a phone, use two fingers. Click a station or its label to learn what it does. The objects follow your experiment below. Label tiles are green for Rounded and coral for Angular, and a dark red ring marks a label that breaks the shape rule. After training, the first eight new objects show a ring when the model gets them wrong. The small traveling dot only shows the order of the steps.

Your turn

Change the data, then train

Not trained yet

A real model learns from made-up data here. It runs in your browser and sends nothing anywhere. Change one thing at a time, train again and compare.

The taskSort the objects by shape, whatever their color. A curved outline is Rounded. Corners are Angular.

16 training examples

Press a label to change it

What this model really does

The model is a decision stump, a decision tree with a single split. Its inputs are two numbers per object, a roundness value between 0 and 1 and a color code, never pixels. It tries a cut point halfway between each pair of neighboring training values, gives each side the label that most of its examples carry and keeps the split with the fewest errors.

A tied vote on one side gives Angular. When two splits make equally few errors, color wins, because the model tries it first. The tie rule is deliberate, so the shortcut shows up clearly. Other models break ties in other ways.

The 3D objects illustrate the two features. This is not an image model or a neural network, and the scores describe only this small made-up task.

Take it into real work

What the experiment means for annotation

Three points to remember on a labeling project.

Key terms

Short definitions from the site glossary. Each term links to its full entry.

Open the full AI glossary, with about 200 terms in eight groups.

Six short questions

Pick an answer to see a short explanation. Nothing is scored or saved.

Where these ideas come from

The lesson is a teaching model. Real training sets are far larger, and real models learn from many more features.

One series, seven lessons

From data to a checked answer

Each lesson covers one stage where people shape what an AI system does.