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
nclass 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 SelfHelp, 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
B SelfHelp Medium
Qb: Use the following test data set to evaluate the decision tree classifier.
Test data set
Book Genre Price True Class
B Romance Low Not Recommended
B Romance Medium Recommended
B Thriller Low Recommended
B Thriller Low Not Recommended
B SelfHelp High Not Recommended
B 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 False Positive
False Negative True NegativeQa: Suppose you use decision tree algorithm and get the following classifier.
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
