This project demonstrates a K-Nearest Neighbors (KNN) classifier for the Iris dataset. The application allows users to:
- Tune the hyperparameter
k(number of neighbors). - Evaluate the model's performance (accuracy and balanced accuracy).
- Predict the iris species based on user-provided input.
- Hyperparameter tuning for KNN (
kselection). - Model training and evaluation.
- Console-based user input for custom predictions.
- Performance metrics: Accuracy and Balanced Accuracy.
Ensure you have the following installed:
- Python 3.x
- pandas
- scikit-learn
- Clone the repository:
git clone https://github.com/yourusername/CAU-AID-Class.git
- Navigate to the project directory:
cd CAU-AID-Class - Install required libraries:
pip install pandas scikit-learn
- Ensure the
iris.csvdataset is available in the project directory.