# Iris (1936)

> 150 flowers, 4 measurements each, 3 species.

Page: https://mralbu.github.io/ai-datasets/d/iris

## Key facts

- Category: Tabular
- Task: Multiclass classification (flower species)
- Creators: Ronald A. Fisher (data collected by Edgar Anderson)
- Size: 150 rows × 4 features
- Splits: all 150
- Input: Sepal length/width and petal length/width, in cm
- Labels: Iris setosa, versicolor, virginica (50 each)
- License: CC BY 4.0 (UCI repository)
- Paper: [The Use of Multiple Measurements in Taxonomic Problems](https://doi.org/10.1111/j.1469-1809.1936.tb02137.x)
- Homepage: https://archive.ics.uci.edu/dataset/53/iris
- Hugging Face: [scikit-learn/iris](https://huggingface.co/datasets/scikit-learn/iris)
- Sampled at Hub revision 0bda0ce801be0fa2f464ff845a9d5ceae99aad7d (2026-11-07)

## Why it matters

Probably the most-used dataset in statistics teaching. Fisher used it to introduce linear discriminant analysis, and it still shows up in the first chapter of countless ML courses: small enough to print on one page, and one class (setosa) is perfectly separable while the other two overlap.

## Worth knowing

- Plot petal length against petal width and setosa splits off cleanly; versicolor and virginica overlap a little. That plot is the whole lesson.
- The widely copied UCI version differs from Fisher's paper in two rows (samples 35 and 38), noted by Bezdek et al. in 1999.
- Fisher published it in the Annals of Eugenics, which is why some courses now prefer the Palmer Penguins dataset (2020) as a replacement.

## Get the data

```bash
# pip install -U huggingface_hub
hf download scikit-learn/iris --repo-type dataset \
  --local-dir iris
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("scikit-learn/iris")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/scikit-learn/iris@~parquet/default/train/*.parquet")
print(df.shape)
```

## Related datasets

- [Palmer Penguins](https://huggingface.co/datasets/SIH/palmer-penguins): 2020, a popular modern substitute (on this site: https://mralbu.github.io/ai-datasets/d/palmer-penguins)

## Papers on this site that use it

- [Fisher's discriminant (1936)](https://mralbu.github.io/ai-datasets/p/fisher-1936.md): Introduced linear discriminant analysis, and the iris flowers it was tested on.
