Iris Flower Classification
Machine learning model that predicts the Iris flower species using four flower measurements.
- Python
- Pandas
- NumPy
- Scikit-learn
- Decision Tree
- Matplotlib

Project Overview
A supervised machine learning project that classifies Iris flowers into their species from sepal and petal measurements.
Problem Statement
Given four numeric flower measurements, predict which of the three Iris species a sample belongs to.
Dataset
The classic Iris dataset: sepal length, sepal width, petal length, petal width and species label.
Tools & Technologies
- Python
- Pandas
- NumPy
- Scikit-learn
- Decision Tree
- Matplotlib
Data Cleaning
- Checked for missing and duplicate records
- Verified value ranges for each measurement
- Encoded the species label for modelling
Data Analysis
- Descriptive statistics for each measurement
- Feature distribution and correlation exploration
- Class separability analysis between species
Methodology
- Split the data into training and testing sets
- Trained a Decision Tree classifier with scikit-learn
- Evaluated the model on the held-out test set
Key Insights
- Petal measurements separate the species far better than sepal measurements
- One species is linearly separable from the other two
- A shallow tree is enough for this problem — deeper trees only overfit
Visualizations
- Feature distribution plots with Matplotlib
- Scatter plots of petal length vs petal width by species
- Decision tree structure plot
Results
- A trained Decision Tree classifier for Iris species prediction
- Evaluation on a held-out test split with a confusion matrix