ML-Lecture-13-KNN
ML-Lecture-13-KNN
Email: [email protected]
Instance Based Learning
No model is learned
It does not learn from the training set immediately instead it stores
the dataset and uses them at the time of prediction(hence also
called lazy learning).
It classifies/predicts the test data based on its similarity to the
stored training data.
Example: KNN algorithm
What is k-Nearest Neighbors (kNN)
learning?
A type of instance-based learning in which an unknown object is
classified with the most common class among its k-closet objects
Basic Idea:
Analogy for kNN
Another Analogy for kNN
If it walks like a duck, quacks like a duck, then it’s probably a duck
Compute
Distance Test Record
X X X