- Here we have to find the nearest point.For example K=5 around the neighbors.
- To find the nearest neighbors calculate the distance between black point and other . then choose top 5 nearest point.
- 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.
- Thats it!!!!!! amazing thing happens when you see patiently..........