Skip to content

shreyadesai20042009/Iris-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌸 Iris Flower Classification

Python Machine Learning Dataset Status License

An end-to-end Machine Learning project that classifies iris flowers into three species β€” Iris-setosa, Iris-versicolor, and Iris-virginica β€” based on petal and sepal measurements. The Iris dataset is a classical dataset used to demonstrate classification algorithms. :contentReference[oaicite:0]{index=0}


🧠 Project Overview

The Iris Flower Classification project applies supervised learning techniques to identify the species of a flower using features such as:

  • Sepal Length (cm)
  • Sepal Width (cm)
  • Petal Length (cm)
  • Petal Width (cm)

This project includes data preprocessing, model training, evaluation, and prediction. :contentReference[oaicite:1]{index=1}


πŸ“ Project Structure

1.Iris-Flower-Classification/ β”œβ”€β”€ Iris.csv β”œβ”€β”€ Iris_Flower_Classification.ipynb β”œβ”€β”€ model.pkl (if saved) β”œβ”€β”€ requirements.txt └── README.md


πŸ›  Tech Stack

  • Python
  • pandas
  • NumPy
  • scikit-learn
  • Matplotlib / Seaborn (optional)
  • Jupyter Notebook

πŸš€ How It Works

  1. Load the Iris Dataset – Classic dataset with 150 samples and 3 species. :contentReference[oaicite:2]{index=2}
  2. Preprocess Data – Feature selection, scaling (if required).
  3. Train/Test Split – Split data into training and testing sets.
  4. Train Model – Train a classifier (e.g., Logistic Regression, KNN, SVM, etc.).
  5. Evaluate – Check model performance using accuracy, confusion matrix.
  6. Predict – Classify unseen samples.

πŸ“Š Machine Learning Models Used

βœ” Logistic Regression
βœ” K-Nearest Neighbors
βœ” Support Vector Machine
βœ” Decision Tree
βœ” Random Forest
(Add or remove depending on what your code uses)


πŸ§ͺ Model Training & Evaluation

Inside the notebook (Iris_Flower_Classification.ipynb), you will find:

  • Data loading and exploratory data analysis
  • Feature visualization (e.g., scatter plots)
  • Model training and performance evaluation
  • Accuracy metrics and classification report

(Refer to the notebook for visuals and performance plots)


πŸ“₯ Installation & Setup

1️⃣ Clone the repository

git clone https://github.com/shreyadesai20042009/Iris-project.git
cd Iris-project/1.Iris-Flower-Classification/1.Iris\ Flower\ Classification
2️⃣ Create virtual environment (optional)
python -m venv venv
source venv/bin/activate      # macOS/Linux
venv\Scripts\activate         # Windows
3️⃣ Install dependencies
pip install -r requirements.txt

If requirements file is missing, install manually:

pip install numpy pandas scikit-learn matplotlib seaborn
πŸ“ˆ How to Run

Open and run the Jupyter Notebook:

jupyter notebook Iris_Flower_Classification.ipynb

Follow the steps in the notebook to train the model and make predictions.

πŸ“Œ Example Prediction
Input: 5.1, 3.5, 1.4, 0.2  
Predicted Species: Iris-setosa

About

Develop a ML Model for classifying iris flowers based on their features using Python, scikit-learn, and TensorFlow.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors