Final Thoughts
Summarize the conclusive points of view on k-nearest neighbors.
First of all, let's discuss the advantages and disadvantages of KNN.
Advantages and Disadvantages of KNN
Advantages | Disadvantages |
It's simple to understand and explain. | All training data must be stored. |
Model training is fast.
| The prediction phase can be slow when test data is large. |
It can be used for classification and regression. | It's sensitive to irrelevant features and feature scaling. |
It’s a nonlinear algorithm:
| Accuracy is (generally) not competitive with the best supervised learning methods. |
We also know that
Access this course and 1400+ top-rated courses and projects.