What about you get the 5 nearest neighbours to be 2 greens, 2 blues and 1 red?You can also have a tie in terms of distance if the data uses enough big units, and so you have no nearest point but rather nearest two points for example.(00:05:45 - 00:13:45)
Python Machine Learning Tutorial #6 - KNN p.2 - How does K Nearest Neighbors Work?
Tech With Tim
※本サイトに掲載されているチャンネル情報や動画情報はYouTube公式のAPIを使って取得・表示しています。
Timetable
動画タイムテーブル
動画数:986件