Question: Given 4 training samples grouped into 2 classes (blue squares and red circles as shown in Figure 1). Two labels are used: B for samples from the blue squares class and R for samples from the red circles class. X₂ 9 m H 4 5 6 7 8 9 10 11 12 Figure 1 1. What is the dimension of the feature space shown in Figure 1? X₁ 2. Compute the Euclidean Distance between the two brown samples (enter a number with only 1 decimal, e.g. 0.4) 2.1.1-NN (i.e., K = 1)? (enter a number here) 2. Assume that the K-NN classifier is used with the Euclidean distance. What will be the predicted label (B or R) of the test sample indicated by the green cross (X) using: 2.3.3-NN (i.e., k = 3)?

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
Question:
Given 4 training samples grouped into 2 classes (blue squares and red circles as shown in Figure 1).
Two labels are used: B for samples from the blue squares class and R for samples from the red circles class.
X,
1 2
10 11 12X,
4 5 6 7 8
Figure 1
1. What is the dimension of the feature space shown in Figure 1?
(enter a number here)
2. Compute the Euclidean Distance between the two brown samples (enter a number with only 1 decimal, e.g. 0.4)
2. Assume that the K-NN classifier is used with the Euclidean distance. What will be the predicted label (B or R) of the test sample indicated by the green cross (X) using:
2.1. 1-NN (i.e., K = 1)?
2.3. 3-NN (i.e., k = 3)?
Note: The provided label must be written in upper case, B or R (and not b or r)
Transcribed Image Text:Question: Given 4 training samples grouped into 2 classes (blue squares and red circles as shown in Figure 1). Two labels are used: B for samples from the blue squares class and R for samples from the red circles class. X, 1 2 10 11 12X, 4 5 6 7 8 Figure 1 1. What is the dimension of the feature space shown in Figure 1? (enter a number here) 2. Compute the Euclidean Distance between the two brown samples (enter a number with only 1 decimal, e.g. 0.4) 2. Assume that the K-NN classifier is used with the Euclidean distance. What will be the predicted label (B or R) of the test sample indicated by the green cross (X) using: 2.1. 1-NN (i.e., K = 1)? 2.3. 3-NN (i.e., k = 3)? Note: The provided label must be written in upper case, B or R (and not b or r)
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,