Given the following dataset of points, use the KNN algorithm to predi…

Previous year question for Fundamentals of Machine Learning.

Question

Given the following dataset of points, use the KNN algorithm to predict the class of a new point $(x,y) = (2.5, 3.0)$. Assume $k=3$.

| $(x,y)$ | $(1,1)$ | $(2,2)$ | $(3,3)$ | $(6,5)$ | $(7,8)$ | $(8,8)$ | $(4,5)$ | $(5,7)$ |

| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |

| Class | A | A | B | B | B | B | A | A |

Related pages

More PYQs on K-Nearest Neighbor

Open on CachedInfo