Question: Problem 9 a ) Use a naive Bayes model to determine whether the test case in this table belongs to the spam or not spam
Problem
aUse a naive Bayes model to determine whether the test case in this table belongs to the "spam" or "not spam" class. Instances Doc to are for training the model; instance is for testing.
bIn a real world setting, it is favorable to avoid finding the probability of a test case belonging to a class to be zero. What do you think the reason could be
One method to handle this problem is called Laplace smoothing. Apply this method to the calculations you did in part a
tabletrainingDoc,Words,ClassMoney,money,friend,spamMoney,money,bank,spamMoney,hello,spamtestLunch,Lol,money,Not spamMoney,money,money,lunch,Lol,
Acknowledgements. This document was made by Saman Saffari, Arezoo Haratian, and Pouria Ramazi.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
