A dataset is a structured collection of examples. Each row is one instance (also called a sample or observation).
The Iris dataset
The Iris dataset, introduced by British statistician and biologist Ronald A. Fisher in 1936, is one of the most iconic datasets in the history of machine learning and statistics. It contains measurements of 150 iris flowers, evenly split across three species — Iris setosa, Iris versicolor, and Iris virginica — with each flower described by four features: sepal length, sepal width, petal length, and petal width, all measured in centimetres. Its appeal lies in its simplicity and structure: one class (setosa) is linearly separable from the other two, while the remaining pair overlaps slightly, making it an ideal sandbox for exploring both simple and more nuanced classification algorithms.
Training samples : 120 (80%)
Test samples : 30 (20%)
An 80/20 train/test split on the Iris dataset
Warning
Data leakage — accidentally letting the model see test data during training — is one of the most common ML mistakes. It produces falsely optimistic performance estimates.