Gradient LabSign up free

Home / GATE DA / 2024 / Q.63

GATE DA 2024, Q.63: Smallest odd k that labels the diamond "square"

Machine learningk-nearest neighbours2 marksNumerical answer

The question

A 2-D dataset of 5 points from two classes (circles and squares) is shown with a query point (diamond). Using Euclidean distance, what is the minimum odd k for which kNN labels the diamond "square"?

This question uses a figure in the official paper. Not readable: the scatter plot (5 labelled points and a diamond) is an image not present in the PDF text layer. See the official paper.

Checking your access…

See it move

Learn the idea behind this question in the free animated lesson k-nearest neighbours, then Decision boundaries.

Source: official GATE DA 2024 question paper and answer key (IISc Bengaluru). The question is lightly reworded; every number and option is kept.