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

 Problem: K - Nearest Neighbours After receiving yet another Dear sir

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!