Question: n - class Exercise: Classification You ve been hired by Amazon to work on their recommendation system for books. Your first task is to see

n-class Exercise: Classification
Youve been hired by Amazon to work on their recommendation system for books. Your
first task is to see if you can predict the recommendations of a single user, using the
following two attributes: Genre (Romance, Self-Help, or Thriller) and Price (High,
Medium, or Low). The classification is whether the user recommended the book or
not.
Qa: Suppose you use decision tree algorithm and get the following classifier.
How would you classify a new instance as follows?
Book Genre Price Class
B7 Self-Help Medium
Qb: Use the following test data set to evaluate the decision tree classifier.
Test data set
Book Genre Price True Class
B1 Romance Low Not Recommended
B2 Romance Medium Recommended
B3 Thriller Low Recommended
B4 Thriller Low Not Recommended
B5 Self-Help High Not Recommended
B6 Romance High Recommended
If the classification outcome is recommended, we consider it as a positive. If the
classification outcome is not recommended, we consider it as a negative. Based on the
test data set and the decision tree classifier, derive the confusion matrix.
Confusion Matrix
True Positive=? False Positive=?
False Negative=? True Negative=?
Suppose you get the following confusion matrix based on a classifier. what is the
accuracy, precision, and recall of this classifier? How to understand these measures?
Confusion Matrix
True Positive=40 False Positive=30
False Negative=10 True Negative=60Qa: Suppose you use decision tree algorithm and get the following classifier.
n - class Exercise: Classification You ve been

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!