- Machine Learning with scikit:learn Quick Start Guide
- Kevin Jolly
- 163字
- 2021-06-24 18:15:56
The k-NN algorithm
Mathematically speaking, the k-NN algorithm is one of the most simple machine learning algorithms out there. See the following diagram for a visual overview of how it works:
The stars in the preceding diagram represent new data points. If we built a k-NN algorithm with three neighbors, then the stars would search for the three data points that are closest to it.
In the lower-left case, the star sees two triangles and one circle. Therefore, the algorithm would classify the star as a triangle since the number of triangles was greater than the number of circles.
In the upper-right case, the star sees two circles and one circle. Therefore, the algorithm will classify the star as a circle since the number of circles was greater than the number of triangles.
The real algorithm does this in a very probabilistic manner and picks the category/shape with the highest probability.
- 空間機器人遙操作系統及控制
- Hands-On Machine Learning on Google Cloud Platform
- Getting Started with MariaDB
- PyTorch Deep Learning Hands-On
- Visual C++編程全能詞典
- 傳感器與物聯網技術
- Cloud Security Automation
- 水晶石影視動畫精粹:After Effects & Nuke 影視后期合成
- Ansible 2 Cloud Automation Cookbook
- Hands-On Dashboard Development with QlikView
- 生物3D打印:從醫療輔具制造到細胞打印
- 案例解說Delphi典型控制應用
- Visual Basic項目開發案例精粹
- Hands-On DevOps
- 計算機硬件技術基礎(第2版)