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)?

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter3: Functions And Graphs
Section3.3: Lines
Problem 74E
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
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill