This repository contains the implementation for Task 1 of the CodeAlpha Data Science Internship.
The goal is to build a machine learning model to classify iris flowers into three distinct species (Setosa, Versicolor, Virginica) using their sepal and petal measurements.
- Loaded the standard Iris dataset via Scikit-learn.
- Split features and target labels into training (80%) and testing (20%) sets.
- Trained a K-Nearest Neighbors (KNN) classifier.
- Evaluated model accuracy and generated a confusion matrix.
- Algorithm: K-Nearest Neighbors (k=5)
- Accuracy: ~96.67% to 100%
- Install dependencies:
pip install -r requirements.txt - Run the script:
python app.py