Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that we have two classes, A and B and a new document d to be classified. The following training data is available: di class

Assume that we have two classes, A and B and a new document d to be classified.

The following training data is available:

di class cos(!! , !)

d1 A 1

d2 B 0.95

d3 B 0.93

d4 A 0.55

d5 A 0.45

d6 B 0.42

Suppose that we use the cosine as a distance measure, i.e., the higher the cosine, the closer are

two vectors.

Which class would be assigned to d with a k-nearest neighbor classifier using cosine if

1. k = 1 and simple majority vote;

2. k = 3 and simple majority vote;

3. k = 5 and simple majority vote.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

New Trends In Algebraic Geometry

Authors: K Hulek ,M Reid ,C Peters ,F Catanese

1st Edition

0521646596, 978-0521646598

More Books

Students also viewed these Mathematics questions