k-Nearest Neighbor (k-NN) Flashcards
1
Q
2 Type of k-Nearest Neighbor
A
k-Nearest Neighbor Classifiers
k-Nearest Neighbor Regressors
2
Q
4 Requirement of k-Nearest Neighbour Classifiers
A
A set of labelled records
Proximity metric - E.g. Euclidean
The value of k - The number of nearest neighbours to retrieve.
A method to determine the class label of unknown record
3
Q
2 Phase of K-NN Algorithm
A
Training Phase
Store the collected data.
Testing Phase (Prediction)
Calculate distance
Sort and select the nearest point based on k.
Predict the class for the point by majority vote
4
Q
2 Type of Voting Approach
A
Majority Voting Approach
Distance-Weighted Voting Approach