Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This question needs to be calculated by hand, please do not post any kind of code. Question 2 [10 points Consider a set of documents,
This question needs to be calculated by hand, please do not post any kind of code.
Question 2 [10 points Consider a set of documents, each of which is related either to Sports (S) or to Informatics (I). Given a training set of 5 documents, we would like to estimate a Naive Bayes classifier, to classify unlabeled documents as Sor I. We define a vocabulary of four words: wl=goal; w2= tutor; w3= variance; w4 speed. Thus each document is represented as a 4-dimensional binary vector. The training data is presented below as a matrix for each class, in which each row represents a 4-dimensional document vector. Each column represents a word. 6 109) 1000 Bsports 0110 0010 = 1101 10101 Classify the following into Sports or Informatics using a Naive Bayes classifier. by = (1 001) b2 = (0110) Question 2 [10 points Consider a set of documents, each of which is related either to Sports (S) or to Informatics (I). Given a training set of 5 documents, we would like to estimate a Naive Bayes classifier, to classify unlabeled documents as Sor I. We define a vocabulary of four words: wl=goal; w2= tutor; w3= variance; w4 speed. Thus each document is represented as a 4-dimensional binary vector. The training data is presented below as a matrix for each class, in which each row represents a 4-dimensional document vector. Each column represents a word. 6 109) 1000 Bsports 0110 0010 = 1101 10101 Classify the following into Sports or Informatics using a Naive Bayes classifier. by = (1 001) b2 = (0110)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