KNN Classification

KNN Classification

  1. Here we have to find the nearest point.For example K=5 around the neighbors.
  2. To find the nearest neighbors calculate the distance between black point and other . then choose top 5 nearest point.
  3. Find that top 5 nearest neighbors of black point, 2 are brown and 3 are green. Since we have a majority of green points around this black point we assign green label to it.
  4. Thats it!!!!!! amazing thing happens when you see patiently..........

要查看或添加评论,请登录

社区洞察