This project uses the classic Iris dataset to demonstrate a simple end-to-end machine learning workflow in Python.
The Iris dataset contains measurements of 150 iris flowers from three different species:
- Setosa
- Versicolor
- Virginica
Goal: Build a model to classify the species based on four features:
- Sepal length (cm)
- Sepal width (cm)
- Petal length (cm)
- Petal width (cm)
-
Data Loading & Exploration (EDA)
- Loaded the dataset from
scikit-learn - Checked for missing values (none found)
- Reviewed summary statistics
- Loaded the dataset from
-
Data Preparation
- Split into training (80%) and testing (20%) sets
-
Model Training
- Used Logistic Regression for classification
- Achieved 100% accuracy on test data
-
Evaluation
- Accuracy score:
1.00 - Confusion matrix showed no misclassifications
- Accuracy score:
- Python
- Pandas
- scikit-learn
- Matplotlib
- Seaborn
π Dataset The Iris dataset is available directly from scikit-learn.