GATE DA 2024 · Question 63 · Machine Learning · Numerical answer (NAT) · 2 marks · no negative marks

Given the two-dimensional dataset consisting of 5 data points from two classes (circles and squares) and assume that the Euclidean distance is used to measure the distance between two points. The minimum odd value of k in k-nearest neighbor algorithm for which the diamond ( ) shaped data point is assigned the label square is ______.

A 2-D grid with x-axis marked 1, 2, 3 and y-axis marked 1, 2, 3, with vertical grid lines at x = 1, 2, 3 and horizontal grid lines at y = 1, 2, 3. Filled black circles at (1,1) and (1,2). Filled black squares at (2,3), (3,3) and (3,2). A hollow diamond at (2,1). Each point is labelled with its coordinates.
Answer

Answer 5

Answer from the official GATE DA 2024 answer key.

The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes