This project implements the K-Nearest Neighbors (KNN) algorithm to classify Iris flowers based on their sepal and petal measurements. The Iris dataset, a standard in machine learning, provides data for three species: Setosa, Versicolor, and Virginica.
- Methodology: Implemented in Python, utilizing Pandas and NumPy for data handling, and Scikit-learn for machine learning tasks.
- Model Training: Trains a KNN classifier with
n_neighbors=3
to predict Iris species. - Performance Evaluation: Includes a confusion matrix and classification report to assess model accuracy.
Clone the repository and install dependencies:
git clone https://github.com/your_username/iris-flower-classification.git
cd iris-flower-classification
pip install -r requirements.txt
Run the main script to classify Iris flowers:
python iris_classification.py
Contributions are welcome! Fork the repository and submit pull requests for enhancements.
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to reach out via LinkedIn for any inquiries or collaborations.