This project uses the Iris dataset and a K-Nearest Neighbors (KNN) algorithm to classify iris flowers into three species: Setosa, Versicolor, and Virginica.
The Iris dataset is a classic dataset in machine learning and statistics, containing 150 samples with 4 features:
- Sepal Length (cm)
- Sepal Width (cm)
- Petal Length (cm)
- Petal Width (cm)
Using these features, the model predicts the species of an iris flower.
- Algorithm: K-Nearest Neighbors (KNN)
- Library: Scikit-learn (
sklearn) - Distance Metric: Euclidean distance
- Best k-value: Selected using accuracy evaluation on validation data