Training Visualizer

Learn how ML models train through hands-on experiments

Step 1 of 8

Your First Dataset - Iris Flowers

What is a dataset? How do we represent data for ML?

The Problem

Can we teach a computer to identify flower species from measurements? Each flower is measured by petal length and width, and we want to predict whether it's a Setosa or Versicolor iris.

What You'll Learn

  • How data is represented for machine learning (features and labels)
  • How a neural network draws a "decision boundary" to separate classes
  • The concept of training a model to fit data

Data source: UCI ML Repository

Loading model...

Network Architecture

Blue = positive weights, Red = negative. Thickness shows magnitude.

x₁x₂n1n2n3n4n5n6n7n8n1n2n3n4n5n6n7n8c0c1InputHidden 1Hidden 2Output
Positive weight
Negative weight
Hover nodes for details
Output Layer

Each output node shows the probability that the input belongs to that class. The model predicts the class with the highest probability.

Dataset Preview(16 samples)
Petal Length (cm)Petal Width (cm)Species
1.40.2
Setosa
1.30.4
Setosa
1.50.2
Setosa
1.40.3
Setosa
1.70.4
Setosa
1.60.2
Setosa
1.40.1
Setosa
1.50.4
Setosa
4.01.3
Versicolor
4.51.5
Versicolor
3.91.4
Versicolor
4.21.3
Versicolor
4.71.4
Versicolor
4.31.6
Versicolor
3.81.1
Versicolor
4.41.5
Versicolor
!

What to Notice

The model learned to separate the two species based on their measurements. Each point is a real flower, and the colored regions show where the model thinks each species belongs.