Exercise 1 - Nearest Neighbors 2D for binary classification: We are given the following training examples in ((-3,5), +), ((-4, –2), +), ((2,1), -), ((4,3),–) Assume that we want to classify the points (-2,0) and (-1,5) using (a) . .a 1-nearest neighbor rule, and (b) a 3-nearest neighbor rule. Use the Euclidean distance (L2-norm) for calculating the distance between the points, in order to determine the k nearest neighbors to the query points given. What is the classification of these two points in each case?

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter10: Sequences, Series, And Probability
Section10.7: Distinguishable Permutations And Combinations
Problem 29E
icon
Related questions
Question
Exercise 1 - Nearest Neighbors
We are given the following training examples in
2D for binary classification:
((-3,5), +), ((-4, –2), +), ((2,1), -), ((4,3),–)
Assume that we want to classify the points (-2,0) and (-1,5) using
(a).
.a 1-nearest neighbor rule, and
(b)
a 3-nearest neighbor rule.
Use the Euclidean distance (L2-norm) for calculating the distance between the points, in order to
determine the k nearest neighbors to the query points given. What is the classification of these two
points in each case?
Transcribed Image Text:Exercise 1 - Nearest Neighbors We are given the following training examples in 2D for binary classification: ((-3,5), +), ((-4, –2), +), ((2,1), -), ((4,3),–) Assume that we want to classify the points (-2,0) and (-1,5) using (a). .a 1-nearest neighbor rule, and (b) a 3-nearest neighbor rule. Use the Euclidean distance (L2-norm) for calculating the distance between the points, in order to determine the k nearest neighbors to the query points given. What is the classification of these two points in each case?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Elementary Linear Algebra (MindTap Course List)
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning