Skip to content

Repository files navigation

🌸 Iris Flower Species Classification using Machine Learning

An end-to-end Machine Learning classification project developed as part of the CodeAlpha Data Science Internship.

Python Scikit-Learn Pandas NumPy Matplotlib Seaborn


📌 Project Overview

The Iris Flower Species Classification project demonstrates the complete Machine Learning workflow using the famous Iris dataset.

The objective is to build a classification model capable of predicting the species of an Iris flower based on its physical measurements.

This project covers every important stage of a Data Science project, from data exploration to model evaluation.


🎯 Project Objectives

  • Understand the Iris dataset
  • Perform Exploratory Data Analysis (EDA)
  • Build a Machine Learning classification model
  • Train and evaluate the model
  • Predict flower species
  • Visualize important insights

📂 Dataset Information

The dataset contains measurements of Iris flowers.

Features

  • Sepal Length
  • Sepal Width
  • Petal Length
  • Petal Width

Target

  • Iris-setosa
  • Iris-versicolor
  • Iris-virginica

⚙️ Technologies Used

  • Python
  • Pandas
  • NumPy
  • Matplotlib
  • Seaborn
  • Scikit-learn
  • Jupyter Notebook / Kaggle Notebook

📊 Project Workflow

Import Libraries
        │
        ▼
Load Dataset
        │
        ▼
Data Exploration
        │
        ▼
Exploratory Data Analysis
        │
        ▼
Feature Selection
        │
        ▼
Train-Test Split
        │
        ▼
Decision Tree Classifier
        │
        ▼
Model Training
        │
        ▼
Prediction
        │
        ▼
Model Evaluation
        │
        ▼
Conclusion

📈 Exploratory Data Analysis

The following analyses were performed:

  • Dataset Overview
  • Statistical Summary
  • Missing Value Analysis
  • Duplicate Value Check
  • Class Distribution
  • Pair Plot
  • Correlation Heatmap
  • Box Plot
  • Histograms
  • Violin Plot
  • Scatter Plot

🤖 Machine Learning Model

Algorithm Used

  • Decision Tree Classifier

📊 Model Evaluation

The model was evaluated using:

  • Accuracy Score
  • Confusion Matrix
  • Classification Report
  • Feature Importance
  • Decision Tree Visualization

📁 Repository Structure

CodeAlpha_Iris_Flower_Classification/
│
├── Iris_Flower_Classification.ipynb
├── Iris.csv
├── README.md
└── images/

🚀 How to Run

1 Clone the repository

git clone https://github.com/YourUsername/CodeAlpha_Iris_Flower_Classification.git

2 Move into the project folder

cd CodeAlpha_Iris_Flower_Classification

3 Install dependencies

pip install -r requirements.txt

4 Open the notebook

Run the notebook using:

  • Jupyter Notebook
  • Kaggle Notebook
  • Google Colab

📚 Key Learnings

Through this project, I learned:

  • Data preprocessing
  • Exploratory Data Analysis
  • Decision Tree Classification
  • Model Evaluation
  • Feature Importance Analysis
  • Machine Learning Workflow
  • Data Visualization

👩‍💻 Author

Aleesha Nadeem


⭐ Support

If you found this project helpful, consider giving this repository a ⭐.

Thank you for visiting!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages