Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following training data for a sentiment analysis classifier for movie reviews. Review Class this a fun movie about a couple in love .

Consider the following training data for a sentiment analysis classifier for movie reviews.
Review Class
this a fun movie about a couple in love . Positive
this movie is packed with action . Positive
biggest disappointment of the year . Negative
Part 1) Based on this data, compute the following marginal probabilities (these are also called the prior probabilities):
Pr(y=+)=?
Pr(y=-)=?
Part 2) Based on this data, what is Pr(y=+|movie of the year .) for a Naive Bayes classifier? Use add
=1 smoothing.
Recall that for a Naive Bayes classifier:
and
Part 3) Based on this data, what is Pr(y=-|movie of the year .) for a Naive Bayes classifier? Use add
=1 smoothing.
Part 4) How does a Naive Bayes classifier classify the review "movie of the year ." given the training data? Is this classification correct? Why has the classifier classified it this way?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data In Just 7 Chapters

Authors: Prof Marcus Vinicius Pinto

1st Edition

B09NZ7ZX72, 979-8787954036

More Books

Students also viewed these Databases questions

Question

Calculate the missing quantities four-figure accuracy.

Answered: 1 week ago