Given a test sample x = (2,5) and the following eight training samples of three categories, please answer the following questions. (a) Please determine the category of x using the single-nearest neighbor algo- rithm. (b) Please determine the category of x using the k-nearest neighbor algorithm, where k = 3. Training examples Category Training examples Category e = (5, 1) W3 W2 a = (3,9) b = (1,3) c = (1,2) d = (3,8) اليا W3 W3 الد f=(4,5) g=(6,9) h = (7,3) الا W3

icon
Related questions
Question
Given a test sample x = (2,5) and the following eight training samples of three
categories, please answer the following questions.
(a) Please determine the category of x using the single-nearest neighbor algo-
rithm.
(b) Please determine the category of x using the k-nearest neighbor algorithm,
where k = 3.
Training examples Category Training examples Category
e = (5, 1)T
W3
f = (4,5)
a = (3,9)
b = (1,3)
c = (1, 2)
d
(3,8)
ال
W3
W3
W1
g
h
(6,9)
(7,3)
ولا
الا
W3
Transcribed Image Text:Given a test sample x = (2,5) and the following eight training samples of three categories, please answer the following questions. (a) Please determine the category of x using the single-nearest neighbor algo- rithm. (b) Please determine the category of x using the k-nearest neighbor algorithm, where k = 3. Training examples Category Training examples Category e = (5, 1)T W3 f = (4,5) a = (3,9) b = (1,3) c = (1, 2) d (3,8) ال W3 W3 W1 g h (6,9) (7,3) ولا الا W3
Expert Solution
steps

Step by step

Solved in 7 steps with 5 images

Blurred answer