AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Catalog / Tabular

    Iris (1936)

    150 flowers, 4 measurements each, 3 species.

    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.

    Get the data

    # pip install -U huggingface_hub
    hf download scikit-learn/iris --repo-type dataset \
      --local-dir iris
    Year
    1936
    Creators
    Ronald A. Fisher (data collected by Edgar Anderson)
    Task
    Multiclass classification (flower species)
    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 · on this site

    Samples

    Showing 8 of 12 sampled rows(from 150 in the train split)
    IdSepalLengthCmSepalWidthCmPetalLengthCmPetalWidthCmSpecies
    175.43.91.30.4Iris-setosa
    61523.51Iris-versicolor
    345.54.21.40.2Iris-setosa
    1225.62.84.92Iris-virginica
    1406.93.15.42.1Iris-virginica
    1496.23.45.42.3Iris-virginica
    605.22.73.91.4Iris-versicolor
    1426.93.15.12.3Iris-virginica

    ∅ = missing value

    What one record actually looks like (raw JSON, row 16)
    {
      "Id": 17,
      "PetalLengthCm": 1.3,
      "PetalWidthCm": 0.4,
      "SepalLengthCm": 5.4,
      "SepalWidthCm": 3.9,
      "Species": "Iris-setosa"
    }

    Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.

    Sampled 2026-11-07 from scikit-learn/iris at revision 0bda0ce

    The whole dataset at once

    Worth knowing

    Related datasets

    Landmark papers