Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started