Master Mathematics.

Machine Learning · Hard · Classification · Problem 3

The smallest k that labels the diamond a square

Five data points: circles at and ; squares at , and . A diamond-shaped query point is at . With Euclidean distance, the minimum odd value of in -nearest neighbour for which the diamond is assigned the label square is .

Source: GATE DA