Iris Dataset · Ace Data Cloud

Iris Dataset:
The classic starting point for machine learning

A classic classification dataset published by statistician R.A. Fisher in 1936. 150 samples, 3 species, 4 features—simple, clean, and perfect, an ideal first step for learning machine learning and data analysis.

Iris Dataset
CSV included · 4.4 KB CC BY 4.0 License In use since 1936
📊
150
Samples
🌸
3
Flower species
📐
4
Features
📅
88+
Years in use

Dataset Highlights

There are good reasons why the Iris dataset is the "Hello World" of machine learning

⚖️

Balanced Classes

Each of the three species (Setosa, Versicolor, Virginica) has 50 samples, perfectly balanced without oversampling or undersampling.

✨

Simple and Clean

No missing values, no outliers, and no complex data cleaning required. The 4.4 KB CSV file contains all the data and is ready to use.

🎓

Beginner-Friendly

A standard teaching dataset for machine learning courses worldwide. From KNN to neural networks, it can demonstrate almost any classification algorithm.

📈

Visualization-Friendly

The 4 numerical features are ideal for scatter plots, box plots, heatmaps, and pair plots, clearly showing distribution differences between classes.

📚

Extensively Documented

As one of the most cited datasets in statistics and machine learning, it has a wealth of tutorials, papers, and reference implementations.

📜

CC BY 4.0 License

A permissive Creative Commons license allows free use for learning, teaching, research, and commercial projects, requiring only attribution.

Use Cases

From classroom exercises to algorithm benchmarking—common uses of the Iris dataset

🤖

Classification Algorithms

KNN, SVM, decision trees, random forests, logistic regression—a go-to dataset for validating any classifier

📊

Data Visualization

Create scatter plots, pair plots, and parallel coordinates plots to intuitively understand the class structure of multidimensional data

📐

Statistics Education

Used to teach core statistical concepts such as discriminant analysis, principal component analysis (PCA), and hypothesis testing

🏆

Algorithm Benchmarking

Quickly compare the accuracy, recall, and F1 scores of different models on standard data

Data Preview

Sample records from the Iris dataset (CSV format)

CSV
sepal_length,sepal_width,petal_length,petal_width,species
5.1,3.5,1.4,0.2,setosa
4.9,3.0,1.4,0.2,setosa
7.0,3.2,4.7,1.4,versicolor
6.4,3.2,4.5,1.5,versicolor
6.3,3.3,6.0,2.5,virginica
5.8,2.7,5.1,1.9,virginica
sepal_length Sepal length sepal_width Sepal width petal_length Petal length petal_width Petal width species Species

Get Started in 3 Steps

Go from browsing to using the data in just a few minutes

01

Explore the Dataset

View the Iris dataset's detailed description, field definitions, and data preview on the Ace Data Cloud platform.

02

Purchase and Download the Package

After logging in, select the one-time purchase plan and download the ZIP package containing the original 4.4 KB CSV, source attribution, and CC BY 4.0 license.

03

Load and Use the Data

Load the data with Python, R, or any data analysis tool, and start training models or creating visualizations.

Python
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
# 加载数据
df = pd.read_csv("iris.csv")
# 划分训练集和测试集
X = df[["sepal_length", "sepal_width", "petal_length", "petal_width"]]
y = df["species"]
X_train, X_test, y_train, y_test = train_test_split(
    X, y, test_size=0.3, random_state=42
)
# 训练随机森林分类器
clf = RandomForestClassifier(n_estimators=100, random_state=42)
clf.fit(X_train, y_train)
# 评估准确率
y_pred = clf.predict(X_test)
print(f"准确率: {accuracy_score(y_test, y_pred):.2%}")  # 输出: 准确率: 100.00%

Start Your Machine Learning Journey

First explore real samples and fields, then choose a plan on the pricing page. The full data package includes source and license information.