Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

16.8 Explain the typical steps in a grievance procedure.

Answered: 1 week ago

Question

16.4 Outline the five steps in the labour relations process.

Answered: 1 week ago