This project is part of my virtual internship at CODSOFT.
The goal is to classify iris flowers into three species using petal and sepal measurements, powered by the K-Nearest Neighbors (KNN) algorithm.
- β Dataset: Iris Dataset
- π Features used: sepal length, sepal width, petal length, petal width
- π§ Model: K-Nearest Neighbors (K=3)
- π― Goal: Predict the flower species:
setosa,versicolor, orvirginica
- Loading and exploring datasets with
pandas - Creating visualizations using
seabornandmatplotlib - Preprocessing and splitting data using
train_test_split - Training and evaluating a basic machine learning model with
scikit-learn - Interpreting performance with confusion matrix and classification report
- β¨ Added custom input prediction to simulate real-world model usage
- Final test accuracy: ~97%
- The model performs best in distinguishing setosa, while versicolor and virginica show slight overlap
- Download the notebook
- Open in Jupyter Notebook or Google Colab
- Run all cells
πΌ #codsoft #internship #datascience