Assignment 5
This assignment is not graded and you don¡¯t need to submit. Still, you may want to study it to prepare for the midterm exam.
Run J48 on buys_computer_extended_tr.csv (note: accept all default parameters).
(1). Visualize the decision tree.
(2). Extract all rules from the decision tree.
(3). For each rule, calculate the coverage and accuracy with regard to the following dataset.
age income student <=30 high no <=30 high no
credit_rating
excellent no fair yes fair yes fair no
excellent no excellent yes fair no excellent yes
fair no excellent yes excellent yes
fair no excellent no fair no
excellent yes fair yes excellent yes
fair no excellent yes
31..40 >40 >40 >40 31..40 <=30 <=30 >40 <=30 31..40 31..40 >40 <=30 <=30 31..40 >40 >40 >40
high yes medium no low yes
low yes medium no low yes
medium yes low yes medium no high yes
medium no high no high yes
low no medium yes low no medium yes
buys_computer