Question: 1 - You are given a dataset with 2 5 samples, each belonging to one of three classes: Class A , Class B , or

1- You are given a dataset with 25 samples, each belonging to one of three classes: Class A,
Class B, or Class C. The samples are described by two features. The table below
summarizes the data: (30p)
A new sample is presented with X1=6.5, X2=3.2.
Tasks:
1. Classify the new sample using KNN with k=5. Use Euclidean distance as the distance
metric.
2. Determine the predicted class for the new sample.
Sample X1 X2 Class
S13.04.2 A
S27.07.0 B
S31.73.0 C
S42.74.0 A
S58.29.5 C
S64.05.2 A
S76.76.8 B
S83.24.5 A
S99.010.2 C
S102.23.5 A
S116.36.5 B
S124.25.5 A
S138.710.0 C
S141.12.2 A
S158.59.7 C
S163.75.0 A
S178.09.2 C
S181.42.8 A
S196.06.2 B
S204.55.7 C
S211.32.5 A
S227.27.3 B
S232.53.7 A
S245.03.2 C
S252.03.2 A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!