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.
Problem.
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
credit_rating
buys_computer
<=30
high
no
fair
yes
<=30
high
no
excellent
no
31..40
high
yes
fair
yes
>40
medium
no
fair
yes
>40
low
yes
fair
no
>40
low
yes
excellent
no
31..40
low
yes
excellent
yes
<=30
medium
no
fair
no
<=30
low
yes
excellent
yes
>40
medium
yes
fair
no
<=30
low
yes
excellent
yes
31..40
medium
no
excellent
yes
31..40
high
yes
fair
no
>40
medium
no
excellent
no
<=30
high
no
fair
no
<=30
high
yes
excellent
yes
31..40
low
no
fair
yes
>40
medium
yes
excellent
yes
>40
low
no
fair
no
>40
medium
yes
excellent
yes