# Label

*noun*

say it: **“LAY-bul”** **/ˈleɪbəl/**

In machine learning, the answer a model learns to guess, such as the number of cups sold, given for each example it learns from.

## What is a **label** in machine learning?

A **label** is the answer a model learns to guess: the column it's trying to predict, such as cups sold. Every example
it learns from has its label filled in; scikit-learn calls it the target, often `y`.

```python
import pandas as pd
days = pd.DataFrame({"temperature": [72, 85, 91], "cups_sold": [40, 65, 80]})
labels = days["cups_sold"]   # what the model learns to guess
```

## In a sentence

- “Each past day's **label** is how many cups were actually sold.”
- “Cups sold is the **label**, and temperature is the feature.”

Level: Apprentice · [More AI Basics terms at this level](https://www.ask-codey.com/glossary?category=ai&level=2)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/label-ai
