KNN find a k nearest examples(neighbour) and vote for its prediction. In the picture, we want to classify green circle. If
k
=
3
k=3
k=3, green circle belongs to the red triangle class. If
k
=
5
k=5
k=5, green circle belongs to the blue square class.
K-Nearest Neighbor K最近邻KNN find a k nearest examples(neighbour) and vote for its prediction.In the picture, we want to classify green circle. If k=3k=3k=3, green circle belongs to the red triangle ...