Your friendly, neighbourhood algorithm!
KNN: A statistical Machine Learning Algorithm which uses proximity between data points to make classifications or predictions.
Instance-Based Learning: No fancy model training needed! Just store all the training data and let the neighbors do the talking.
How it Works:
- Classification: Majority vote among \(k\) closest data points.
- Regression: Average the values of the \(k\) nearest data points.
Distance Metrics:
- How close are the neighbors? Common ways to measure:
- Euclidean distance
- Manhattan distance
- Minkowski distance
- How close are the neighbors? Common ways to measure: