Question: ( 6 points ) Decision Tree with C 4 . 5 Algorithm In the following questions, you will use the dataset below to train a

(6 points) Decision Tree with C4.5 Algorithm
In the following questions, you will use the dataset below to train a decision tree which
predicts if students enrolled in a machine learning class would pass (Yes or No), based on
their previous GPA, number of lectures attended (out of 10 lectures the whole semester),
and whether or not they studied after class. You will apply C4.5 algorithm to build a
Table 1: Student dataset
decision tree, namely, the splitting criterion is to maximize the information gain of a
split. As the preparation step, you need to transform the two numeric variables into
categorical variables with the following criteria:
GPA: categorized as 'Low' when GPA =2.5; categorized as 'Medium' when 2.5
GPA =3.5; categorized as 'High' when GPA >3.5.
Attendance: categorized as 'Good' when number of lectures attended >=7; catego-
rized as 'Bad' when number of lectures attended 7.
(6 points) Decision Tree with C4.5 AlgorithmIn your calculation, you may need the following logarithm terms. To simplify calculation,
you can use the rounded values below instead of calculating the exact logarithm values.
log_(2)((1)/(2))=-1,log_(2)((1)/(3))=-1.58,log_(2)((2)/(3))=-0.58,log_(2)((1)/(4))=-2,log_(2)((3)/(4))=-0.41
log_(2)((1)/(5))=-2.32,log_(2)((4)/(5))=-0.32,log_(2)((3)/(7))=-1.22,log_(2)((4)/(7))=-0.81
(1) In iteration 1, what is the information gain of splitting on the GPA levels? The
split will produce three children nodes: GPA = 'Low', GPA = 'Medium', GPA =
'High'. Pick the closest rounded value below.
A.0.26
B.0.40
C.0.60
D.0.74
 (6 points) Decision Tree with C4.5 Algorithm In the following questions,

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 Databases Questions!