The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Whizzco decide to make a text classifier. To begin with they attempt to classify documents as either sport or politics. They decide to represent each document as a (row) vector of attributes describing the presence or absence of words.
x = (goal , football , golf , defence , offence , wicket , office , strategy . ) (10.7.6)
Training data from sport documents and from politics documents is represented below in MATLAB using a matrix in which each row represents the eight attributes.
|
xP=[1 |
0 |
1 |
1 |
1 |
0 |
1 |
1; |
% |
Politics |
xS=[1 |
1 |
0 |
0 |
0 |
0 |
0 |
0; % Sport |
|
0 |
0 |
0 |
1 |
0 |
0 |
1 |
1; |
 |  |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
0; |
|
1 |
0 |
0 |
1 |
1 |
0 |
1 |
0; |
 |  |
1 |
1 |
0 |
1 |
0 |
0 |
0 |
0; |
|
0 |
1 |
0 |
0 |
1 |
1 |
0 |
1; |
 |  |
1 |
1 |
0 |
1 |
0 |
0 |
0 |
1; |
|
0 |
0 |
0 |
1 |
1 |
0 |
1 |
1; |
 |  |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
0; |
|
0 |
0 |
0 |
1 |
1 |
0 |
0 |
1] |
 |  |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0; |
| Â | Â | Â | Â | Â | Â | Â | Â | Â | Â |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
0]. |
Using a maximum likelihood naive Bayes classifier, what is the probability that the document x =
(1 , 0 , 0 , 1 , 1 , 1 , 1 , 0) is about politics?
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll