# Label

- **Canonical URL:** https://getaimath.com/dictionary/label/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/)
- **Last updated:** 2026-11-25

## What is Label?

**In one sentence:** A label is the correct answer attached to an example in a training dataset.

In supervised learning, every example comes with a label, like a sticker that says what it is. A photo might be labeled "dog," an email "spam," or a house "$300,000." The model learns by trying to guess the label and checking whether it got it right.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

## What is an example of Label?

A dataset of fruit photos where each one is tagged "apple," "banana" or "pear" has labels.

## Why does Label matter?

Labels teach the model what right looks like, so wrong labels lead to a confused model.

## Related Concepts

- [Feature](https://getaimath.com/dictionary/feature/): A feature is one piece of information about an example that a model uses to make a decision.
- [Loss Function](https://getaimath.com/dictionary/loss-function/): A loss function is a formula that measures how wrong a model's answer is, giving one number to make smaller.
- [Ground Truth](https://getaimath.com/dictionary/ground-truth/): Ground truth is the real, correct answer that a model's guesses are compared against.
- [Optimization](https://getaimath.com/dictionary/optimization/): Optimization is the process of adjusting a model's numbers step by step to make its mistakes as small as possible.
- [Test Data](https://getaimath.com/dictionary/test-data/): Test data is a set of examples kept hidden until the very end, used to measure how good the finished model really is.
- [Gradient Descent](https://getaimath.com/dictionary/gradient-descent/): Gradient descent is a method for training models by repeatedly taking small steps in the direction that reduces mistakes the most.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/label/)
