CMTH642 - Module 10.2 - Classification
CMTH642 - Module 10.2 - Classification
2
Classification Algorithms
• Logistic regression
• Naïve Bayes classifier
• Decision trees
• k-Nearest Neighbours (k-NN)
3
k-Nearest Neighbours Algorithm
4
k-Nearest Neighbours Algorithm
5
k-Nearest Neighbours Algorithm
6
k-Nearest Neighbours Algorithm
7
k-Nearest Neighbours Algorithm
8
Example
The green circle should be classified
If k = 3, it is assigned to red triangles
If k = 5, it is assigned to blue squares
9
References
10