Skip to content

diya-coder17/Iris-classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Iris Dataset –

This project explores the Iris dataset through exploratory data analysis (Task 1) and applies a K-Nearest Neighbors (KNN) classifier (Task 2) to classify flowers into their species.


πŸ”Ή Tasks Completed

βœ… Task 1: Exploratory Data Analysis (EDA)

  • Loaded and cleaned the dataset
  • Visualized distributions of features
  • Observed relationships between sepal/petal dimensions and species

βœ… Task 2: KNN Classifier

  • Preprocessed data (train/test split + scaling)
  • Trained KNN models with different k values (3, 5, 7, 9)
  • Evaluated performance using accuracy, confusion matrix, and classification report

πŸ› οΈ Tech Stack

  • Python 🐍
  • pandas, numpy
  • scikit-learn
  • matplotlib, seaborn

πŸš€ Run the Project

git clone https://github.com/yourusername/Iris-KNN-Classification.git
cd Iris-KNN-Classification
pip install -r requirements.txt
jupyter notebook iris_knn.ipynb

πŸ“Œ Learnings

  • Scaling is crucial for distance-based models like KNN
  • The choice of k directly impacts model accuracy
  • Visualization helps in understanding feature separability

✨ Author: Diya Agarwal

About

Machine Learning on Iris Data set

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published