Skip to content

This project applies machine learning to classify iris flowers into three species based on features like petal and sepal length/width. It uses supervised learning algorithm (Logistic Regression) to build a simple yet powerful multiclass classification model trained on the classic Iris dataset.

Notifications You must be signed in to change notification settings

muqadasejaz/-Iris-Flower-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

🌸 Iris Flower Classification

A Machine Learning project to classify iris flowers into three species using Logistic Regression with 91% accuracy.


📌 Overview

This project focuses on classifying iris flowers into the following three categories:

  • Setosa (Class 0)

  • Versicolor (Class 1)

  • Virginica (Class 2)

The classification is based on four numerical features:

  • 🌿 Sepal Length

  • 🌿 Sepal Width

  • 🌸 Petal Length

  • 🌸 Petal Width


🌟 Features

  • ✅ User-friendly GUI using Tkinter

  • ✅ Input-based live predictions

  • ✅ Visual representation of confusion matrix and ROC curve

  • ✅ Tested on a new dataset for generalization

  • ✅ 91% model accuracy with Logistic Regression


📊 Dataset

  • Source: Iris Dataset on Kaggle

  • Samples: 150

  • Classes: 3 (Setosa, Versicolor, Virginica)

  • Features: 4 (sepal and petal dimensions)


✅ Results

  • Model: Logistic Regression

  • Accuracy: 91%

📈 Evaluation Metrics:

  • Confusion Matrix

    image

Predicted: Setosa Predicted: Versicolor Predicted: Virginica
Actual: Setosa 19 0 0
Actual: Versicolor 0 9 4
Actual: Virginica 0 0 13
  • AUC ROC Score

    image

  • Classification Report

    Classification_report

  • Predictions on unseen/test data

    prediction_on_new_data

    • Predictions on unseen/test data(GUI)

      prediction


📚 References


👩‍💻 Author

Muqadas Ejaz

BS Computer Science (AI Specialization)

Machine Learning & Computer Vision Enthusiast

📫 Connect with me on LinkedIn

🌐 GitHub: github.com/muqadasejaz

About

This project applies machine learning to classify iris flowers into three species based on features like petal and sepal length/width. It uses supervised learning algorithm (Logistic Regression) to build a simple yet powerful multiclass classification model trained on the classic Iris dataset.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published