Includes machine learning classifier and regressors.
This project demonstrates a simple K-Nearest Neighbors (KNN) classifier applied to a fruit dataset. It shows how to use KNN for supervised classification, visualize decision boundaries, and evaluate model performance.
The project is based on an educational example from the Applied Machine Learning with Python course (Coursera), extended with clear plots and explanations.
For a full walkthrough with code, outputs, and visualizations, see the Jupyter Notebook Computer_Vision_in_Agriculture.ipynb
Run the notebook online (no setup required):
- Goal: Classify fruits based on features (weight, height, width, color score, etc.)
- Algorithm: K-Nearest Neighbors (KNN)
- Steps:
- Load the fruit dataset
- Split into training and test sets
- Standardize features
- Train a KNN classifier with different
kvalues - Visualize classification accuracy and decision boundaries
- Evaluate the model
The dataset contains fruit samples with the following attributes:
- Fruit label (apple, mandarin, orange, lemon)
- Features: height, width, mass, color score