Question: 9 : 2 1 5 G 7 2 Exercise - 1 : Movie Review Sentiment Classification Using Na ve Bayes Classify movie reviews as positive
:
G
Exercise: Movie Review Sentiment Classification Using Nave Bayes
Classify movie reviews as "positive" or "negative" based on features like the presence of certain keywords.
Dataset: Here is a small sample dataset:
tableReview IDContains "Good",Contains "Bad",Contains "Great",SentimentYes,NoYes,PositiveNoYes,NoNegativeYes,Yes,NoNegativeNoNoYes,PositiveYes,NoYes,PositiveNoYes,NoNegative
Use Nave Bayes algorithm to classify a new movie having features such as:
Contains "Good" Yes
Contains "Bad" No
Contains "Great" No
Exercise Decision Tree ID
Given the below dataset
We want to build a decision using the ID algorithm.
tableAgeIncome,Student,Credit Rating,Buys ComputerHigh,NoFair,NoHigh,NoExcellent,NoHigh,NoFair,YesMedium,NoFair,YesLow,Yes,Fair,YesLow,Yes,Excellent,NoLow,Yes,Excellent,YesMedium,NoFair,NoLow,Yes,Fair,YesMedium,Yes,Fair,YesMedium,Yes,Excellent,YesMedium,NoExcellent,YesHigh,Yes,Fair,YesMedium,NoExcellent,No
Questions:
Calculate the Entropy of the Entire Dataset.
Calculate the Information Gain for Each Attribute.
Select the Attribute with the Highest Information Gain.
Repeat the Process for Each Branch.
Ims.kku.edu.sa
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
