✦
✦
Future-Ready · AI & Machine Learning
Training and test data
A machine-learning system uses data to find patterns. The examples used in training shape what a model learns. Which examples are missing?
🏷️Features, labels and test examples
In this labeled dataset, an example has a feature, such as a pixel value, and a label, such as “cat.” We train on one part of the data, then use the held-back part as a test of how well the model handles new cases.
🏋️ TRAINING DATA
Examples used to adjust the model as it learns patterns. Relevance and accuracy matter as well as the number of examples.
📝 TEST DATA
Examples we set aside during training. A test score describes how well the model performed on those examples. It does not establish that every new prediction will be correct.
⚖️What happens when examples are missing?
✅VARIED DATA
This dataset shows several types of cats in different colors, sizes and positions.
This model labels a new cat correctly here.
⚠️ONE-SIDED DATA
In this example, a black cat appears. The model saw only orange cats during training and makes an error.
An example of biased predictions
What changes? A wider range of relevant examples can help. Check new predictions for recurring errors.
🌎Examples of data people produce
🌎 You make data every day
Tagging photos, talking to a voice helper, or rating a video all create data.
Companies collect information to build datasets. Services differ in what they collect and how they use it.
That's why your privacy matters. Ask a trusted adult before sharing personal details with a service.
🔑Key Terms
📚Data Information such as words, numbers, photos or sound recordings.
🗂️Dataset A collection of examples selected for a task, such as training or testing a model.
🔎Feature A measurable part of an example, such as the value of a pixel in a cat photo.
🏷️Label An answer or category assigned to an example, such as “cat.” A label can be mistaken.
🏋️Training Data Examples used to adjust the model during training.
📝Test Data Examples kept out of training to evaluate how the model performs on new cases.
⭐
To evaluate a cat classifier, use photos it has not trained on. Include a variety of cats, compare errors and look for examples that training left out.
✏️ ClickClass · Training and test data