Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem: K - Nearest Neighbours After receiving yet another Dear sir or madam. email, you decide to construct a spam filter. For your first attempt

image text in transcribed

Problem: K - Nearest Neighbours After receiving yet another Dear sir or madam." email, you decide to construct a spam filter. For your first attempt you decide to try using a k Nearest Neighbours model. You decide to classify spam according to 2 features: email word count and occurrences of the words "sir" or "madam". Occurences of words "sir" or "madam" I= GOOD EMAIL = SPAM D 30 25 G 20 15 10 B :) 100 200 600 700 300 400 500 Word Count 1. Draw the decision boundary for 1-nearest-neighbor on the above diagram of the given training data. Use the centre of the faces as the positions of the training data points. 2. How will 1-nearest-neighbor classify an email with 200 words of which 9 are the word "sir? Plot this point on the graph as X? 3. How will 3-nearest-neighbors classify an email with 600 words of which 7 are the word "madam"? Plot this point on the graph as Y? 4. How will 5-nearest-neighbors classify an email with 500 words of which 25 are the word "madam"? Plot this on the graph as Z? 5. How would one go about selecting a good k to use? Problem: K - Nearest Neighbours After receiving yet another Dear sir or madam." email, you decide to construct a spam filter. For your first attempt you decide to try using a k Nearest Neighbours model. You decide to classify spam according to 2 features: email word count and occurrences of the words "sir" or "madam". Occurences of words "sir" or "madam" I= GOOD EMAIL = SPAM D 30 25 G 20 15 10 B :) 100 200 600 700 300 400 500 Word Count 1. Draw the decision boundary for 1-nearest-neighbor on the above diagram of the given training data. Use the centre of the faces as the positions of the training data points. 2. How will 1-nearest-neighbor classify an email with 200 words of which 9 are the word "sir? Plot this point on the graph as X? 3. How will 3-nearest-neighbors classify an email with 600 words of which 7 are the word "madam"? Plot this point on the graph as Y? 4. How will 5-nearest-neighbors classify an email with 500 words of which 25 are the word "madam"? Plot this on the graph as Z? 5. How would one go about selecting a good k to use

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

Identify the cause of a performance problem. page 363

Answered: 1 week ago