petal_length
float32
1
6.9
petal_width
float32
0.1
2.5
sepal_length
float32
4.3
7.9
sepal_width
float32
2
4.4
species
class label
3 classes
1.4
0.2
5.1
3.5
0Iris-setosa
1.4
0.2
4.9
3
0Iris-setosa
1.3
0.2
4.7
3.2
0Iris-setosa
1.5
0.2
4.6
3.1
0Iris-setosa
1.4
0.2
5
3.6
0Iris-setosa
1.7
0.4
5.4
3.9
0Iris-setosa
1.4
0.3
4.6
3.4
0Iris-setosa
1.5
0.2
5
3.4
0Iris-setosa
1.4
0.2
4.4
2.9
0Iris-setosa
1.5
0.1
4.9
3.1
0Iris-setosa
1.5
0.2
5.4
3.7
0Iris-setosa
1.6
0.2
4.8
3.4
0Iris-setosa
1.4
0.1
4.8
3
0Iris-setosa
1.1
0.1
4.3
3
0Iris-setosa
1.2
0.2
5.8
4
0Iris-setosa
1.5
0.4
5.7
4.4
0Iris-setosa
1.3
0.4
5.4
3.9
0Iris-setosa
1.4
0.3
5.1
3.5
0Iris-setosa
1.7
0.3
5.7
3.8
0Iris-setosa
1.5
0.3
5.1
3.8
0Iris-setosa
1.7
0.2
5.4
3.4
0Iris-setosa
1.5
0.4
5.1
3.7
0Iris-setosa
1
0.2
4.6
3.6
0Iris-setosa
1.7
0.5
5.1
3.3
0Iris-setosa
1.9
0.2
4.8
3.4
0Iris-setosa
1.6
0.2
5
3
0Iris-setosa
1.6
0.4
5
3.4
0Iris-setosa
1.5
0.2
5.2
3.5
0Iris-setosa
1.4
0.2
5.2
3.4
0Iris-setosa
1.6
0.2
4.7
3.2
0Iris-setosa
1.6
0.2
4.8
3.1
0Iris-setosa
1.5
0.4
5.4
3.4
0Iris-setosa
1.5
0.1
5.2
4.1
0Iris-setosa
1.4
0.2
5.5
4.2
0Iris-setosa
1.5
0.1
4.9
3.1
0Iris-setosa
1.2
0.2
5
3.2
0Iris-setosa
1.3
0.2
5.5
3.5
0Iris-setosa
1.5
0.1
4.9
3.1
0Iris-setosa
1.3
0.2
4.4
3
0Iris-setosa
1.5
0.2
5.1
3.4
0Iris-setosa
1.3
0.3
5
3.5
0Iris-setosa
1.3
0.3
4.5
2.3
0Iris-setosa
1.3
0.2
4.4
3.2
0Iris-setosa
1.6
0.6
5
3.5
0Iris-setosa
1.9
0.4
5.1
3.8
0Iris-setosa
1.4
0.3
4.8
3
0Iris-setosa
1.6
0.2
5.1
3.8
0Iris-setosa
1.4
0.2
4.6
3.2
0Iris-setosa
1.5
0.2
5.3
3.7
0Iris-setosa
1.4
0.2
5
3.3
0Iris-setosa
4.7
1.4
7
3.2
1Iris-versicolor
4.5
1.5
6.4
3.2
1Iris-versicolor
4.9
1.5
6.9
3.1
1Iris-versicolor
4
1.3
5.5
2.3
1Iris-versicolor
4.6
1.5
6.5
2.8
1Iris-versicolor
4.5
1.3
5.7
2.8
1Iris-versicolor
4.7
1.6
6.3
3.3
1Iris-versicolor
3.3
1
4.9
2.4
1Iris-versicolor
4.6
1.3
6.6
2.9
1Iris-versicolor
3.9
1.4
5.2
2.7
1Iris-versicolor
3.5
1
5
2
1Iris-versicolor
4.2
1.5
5.9
3
1Iris-versicolor
4
1
6
2.2
1Iris-versicolor
4.7
1.4
6.1
2.9
1Iris-versicolor
3.6
1.3
5.6
2.9
1Iris-versicolor
4.4
1.4
6.7
3.1
1Iris-versicolor
4.5
1.5
5.6
3
1Iris-versicolor
4.1
1
5.8
2.7
1Iris-versicolor
4.5
1.5
6.2
2.2
1Iris-versicolor
3.9
1.1
5.6
2.5
1Iris-versicolor
4.8
1.8
5.9
3.2
1Iris-versicolor
4
1.3
6.1
2.8
1Iris-versicolor
4.9
1.5
6.3
2.5
1Iris-versicolor
4.7
1.2
6.1
2.8
1Iris-versicolor
4.3
1.3
6.4
2.9
1Iris-versicolor
4.4
1.4
6.6
3
1Iris-versicolor
4.8
1.4
6.8
2.8
1Iris-versicolor
5
1.7
6.7
3
1Iris-versicolor
4.5
1.5
6
2.9
1Iris-versicolor
3.5
1
5.7
2.6
1Iris-versicolor
3.8
1.1
5.5
2.4
1Iris-versicolor
3.7
1
5.5
2.4
1Iris-versicolor
3.9
1.2
5.8
2.7
1Iris-versicolor
5.1
1.6
6
2.7
1Iris-versicolor
4.5
1.5
5.4
3
1Iris-versicolor
4.5
1.6
6
3.4
1Iris-versicolor
4.7
1.5
6.7
3.1
1Iris-versicolor
4.4
1.3
6.3
2.3
1Iris-versicolor
4.1
1.3
5.6
3
1Iris-versicolor
4
1.3
5.5
2.5
1Iris-versicolor
4.4
1.2
5.5
2.6
1Iris-versicolor
4.6
1.4
6.1
3
1Iris-versicolor
4
1.2
5.8
2.6
1Iris-versicolor
3.3
1
5
2.3
1Iris-versicolor
4.2
1.3
5.6
2.7
1Iris-versicolor
4.2
1.2
5.7
3
1Iris-versicolor
4.2
1.3
5.7
2.9
1Iris-versicolor
4.3
1.3
6.2
2.9
1Iris-versicolor
3
1.1
5.1
2.5
1Iris-versicolor
4.1
1.3
5.7
2.8
1Iris-versicolor

Note

The Iris dataset is one of the most popular datasets used for demonstrating simple classification models. This dataset was copied and transformed from scikit-learn/iris to be more native to huggingface.

Some changes were made to the dataset to save the user from extra lines of data transformation code, notably:

  • removed id column
  • species column is casted to ClassLabel (supports ClassLabel.int2str() and ClassLabel.str2int())
  • cast feature columns from float64 down to float32
  • rename feature names to snake-case

Iris Species Dataset

The Iris dataset was used in R.A. Fisher's classic 1936 paper, The Use of Multiple Measurements in Taxonomic Problems, and can also be found on the UCI Machine Learning Repository.

It includes three iris species with 50 samples each as well as some properties about each flower. One flower species is linearly separable from the other two, but the other two are not linearly separable from each other. The dataset is taken from UCI Machine Learning Repository's Kaggle. The following description is taken from UCI Machine Learning Repository. This is perhaps the best known database to be found in the pattern recognition literature. Fisher's paper is a classic in the field and is referenced frequently to this day. (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant. One class is linearly separable from the other 2; the latter are NOT linearly separable from each other.

Predicted attribute: class of iris plant.

This is an exceedingly simple domain.

This data differs from the data presented in Fishers article (identified by Steve Chadwick, spchadwick '@' espeedaz.net ). The 35th sample should be: 4.9,3.1,1.5,0.2,"Iris-setosa" where the error is in the fourth feature. The 38th sample: 4.9,3.6,1.4,0.1,"Iris-setosa" where the errors are in the second and third features.

Features in this dataset are the following:

  • sepal length in cm
  • sepal width in cm
  • petal length in cm
  • petal width in cm
  • class:
    • Iris-setosa
    • Iris-versicolour
    • Iris-virginica
Downloads last month
461
Edit dataset card