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}
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}
1.Iris-Flower-Classification/ βββ Iris.csv βββ Iris_Flower_Classification.ipynb βββ model.pkl (if saved) βββ requirements.txt βββ README.md
- Python
- pandas
- NumPy
- scikit-learn
- Matplotlib / Seaborn (optional)
- Jupyter Notebook
- Load the Iris Dataset β Classic dataset with 150 samples and 3 species. :contentReference[oaicite:2]{index=2}
- Preprocess Data β Feature selection, scaling (if required).
- Train/Test Split β Split data into training and testing sets.
- Train Model β Train a classifier (e.g., Logistic Regression, KNN, SVM, etc.).
- Evaluate β Check model performance using accuracy, confusion matrix.
- Predict β Classify unseen samples.
β Logistic Regression
β K-Nearest Neighbors
β Support Vector Machine
β Decision Tree
β Random Forest
(Add or remove depending on what your code uses)
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)
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