S ScienceFairProjects.info
Easy⏱ time1.5 hr$ cost0

Iris Flower Classifier

Train the classic beginner model to identify iris species from four flower measurements.

Start building ↓
fig — working model Result first

The build

Step 01

Load the data

Read the 150-flower Iris dataset.

Step 02

Explore

Plot petal vs sepal sizes by species.

Step 03

Train

Fit a classifier on the measurements.

Step 04

Predict

Enter new measurements and name the species.

Working Principle

The model learns how each species' measurements cluster, then assigns a new flower to whichever cluster its numbers fall closest to.

The science behind it

A closer look

It's the 'hello world' of machine learning: four features, three classes, and clear separation make patterns easy to see.

Take it further

Variables to test

  • 1 Use only two features — still accurate?
  • 2 Which two species get confused most?

More AI