- Machine Learning with Swift
- Alexander Sosnovshchenko
- 153字
- 2021-06-24 18:55:06
KNN cons
- The algorithm is fast for training but slow for inference.
- You need to choose the best k somehow (see Choosing a good k section).
- With the small values of k, the model can be badly affected by outliers; in other words, it's prone to overfitting.
- You need to choose a distance metric. For usual real value features, one can choose among many available options (see Calculating the distance section) resulting in different closest neighbors. The metric used by default in many machine learning packages is the Euclidean distance; however, this choice is nothing more than a tradition and for many applications is not the optimal.
- Model size grows with the new data incorporated.
- What should we do if there are several identical samples with different labels? In this case, the result can be different depending on the order in which samples are stored.
- The model suffers from the curse of dimensionality.
推薦閱讀
- Istio入門與實戰
- Learning AngularJS Animations
- 嵌入式系統設計教程
- Artificial Intelligence Business:How you can profit from AI
- 計算機維修與維護技術速成
- OpenGL Game Development By Example
- Internet of Things Projects with ESP32
- LPC1100系列處理器原理及應用
- WebGL Hotshot
- IP網絡視頻傳輸:技術、標準和應用
- 嵌入式系統原理及應用:基于ARM Cortex-M4體系結構
- 計算機組裝與維護(慕課版)
- Learning Less.js
- 零基礎輕松學修電腦主板
- 詳解FPGA:人工智能時代的驅動引擎