Question
(a) Recall from the notes we had the following data set for the KNN model.Instead of using Euclidean distance, compare the results from what is
(a) Recall from the notes we had the following data set for the KNN model.Instead of using Euclidean distance, compare the results from what is obtained in the notes by using distance=[|x_i-x|+|y_i-y|] to now predict the classification for (22,6) for k =3.Make sure to post the results in the table below.Use a simple decision rule.
X Y Classification (A or B) Distance
5 14 A
6 49 B
3 17 A
1 60 A
17 29 B
63 50 A
23 61 B
69 54 B
3 76 B
53 9 A
4 37 B
25 11 A
22 6 ?? -
(b) Given the following Diagram.Predict the classification of:when we let k =9 between a heart, yellow ball, or smiley face.Use concentric circles to make your decision.Note that the distance is measured from the cross to the object using the closest edges.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started