k-Nearest Neighbor (k-NN) Flashcards

1
Q

2 Type of k-Nearest Neighbor

A

k-Nearest Neighbor Classifiers
k-Nearest Neighbor Regressors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

2 Type of Voting Approach

A

Majority Voting Approach
Distance-Weighted Voting Approach

How well did you know this?
1
Not at all
2
3
4
5
Perfectly