Question
The feature vectors of three classes are given. Using the 3-nearest neighbors classifier, classify the test vector $\{16,16\}$.$$\begin{array}{l|l|l}\hline \text { Class } & \text { Feature 1 } & \text { Feature 2 } \\\hline \text { Class1 } & 14 & 16 \\\hline \text { Class1 } & 14 & 14 \\\hline \text { Class1 } & 13 & 17 \\\hline \text { Class2 } & 18 & 14 \\\hline \text { Class2 } & 17 & 16 \\\hline \text { Class2 } & 17 & 15 \\\hline \text { Class3 } & 14 & 17 \\\hline \text { Class3 } & 17 & 19 \\\hline \text { Class3 } & 15 & 17 \\\hline\end{array}$$
Step 1
The test vector is \(\{16, 16\}\). The feature vectors for each class are as follows: - Class 1: \(\{14, 16\}, \{14, 14\}, \{13, 17\}\) - Class 2: \(\{18, 14\}, \{17, 16\}, \{17, 15\}\) - Class 3: \(\{14, 17\}, \{17, 19\}, \{15, 17\}\) Show more…
Show all steps
Your feedback will help us improve your experience
Runpeng Li and 86 other educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
In Exercises 15 and $16,$ list five vectors in $\operatorname{Span}\left\{\mathbf{v}_{1}, \mathbf{v}_{2}\right\} .$ For each vector, show the weights on $\mathbf{v}_{1}$ and $\mathbf{v}_{2}$ used to generate the vector and list the three entries of the vector. Do not make a sketch. $$ \mathbf{v}_{1}=\left[\begin{array}{l}{3} \\ {0} \\ {2}\end{array}\right], \mathbf{v}_{2}=\left[\begin{array}{r}{-2} \\ {0} \\ {3}\end{array}\right] $$
Linear Equations in Linear Algebra
Vector Equations
In Exercises 15 and $16,$ list five vectors in $\operatorname{Span}\left\{\mathbf{v}_{1}, \mathbf{v}_{2}\right\} .$ For each vector, show the weights on $\mathbf{v}_{1}$ and $\mathbf{v}_{2}$ used to generate the vector and list the three entries of the vector. Do not make a sketch. $$ \mathbf{v}_{1}=\left[\begin{array}{r}{7} \\ {1} \\ {-6}\end{array}\right], \mathbf{v}_{2}=\left[\begin{array}{r}{-5} \\ {3} \\ {0}\end{array}\right] $$
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD