04: K-Nearest neighbor Flashcards

(7 cards)

1
Q

KNN - K-Nearest Neighbors

A

ML algorithm that is used to classify data points based on their proximity to other data points

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

K-Neighbors classification

A

Commonly used:
* Pattern recognition
* Image classification
* Recommendation system

Performance depends on:
* The choice of K
* The distance metric

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

K-Neighbors Regression

A
  • Suitable for continuous numerical predictions
  • Works well with small to medium-sized datasets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Streanghts of KNN?

A
  • Simple and easy to understand
  • Effective for small datasets
  • No training phase
  • Works well with minimal Hyperparameter tuning
  • Flexible distance metrics
  • Good baseline model
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Weaknesses of KNN?

A
  • Computationally expensive for large datasets
  • Not suitable for sparse data
  • Slow prediction speed
  • Choice of k is crucial
  • Affected by Noisy and Irrelevent features
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Key Parameters in KNN

A
  1. Number of Neighbors (k)
  2. Distance Metric
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Applications of KNN

A
  • Disease diagnosis and Patient risk assessment
  • Object identification
  • Facial recognition
    *
How well did you know this?
1
Not at all
2
3
4
5
Perfectly