KNN Flashcards

(4 cards)

1
Q

what is the KNN prediction algorithm?

A
  1. Identify the K training with the smallest distance to your test point
  2. determine the conditional probability of each class within your “neighborhood”
  3. set your test point to the class with the higheset probability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a decision boundary?

A

its’ where the KNN algorithm will change it’s answer.

can sometimes misclassify since it classifies based off probabilities

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

what is the relationship betweenthe choice of K and the model flexibility?

A

the lower the K, the higher the flexibility

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

whats the best way to evaluate model accuracy?

A

percent of correctly classifed predictions

for error rate, percent of missclassified predictions

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