Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a ) Calculate the entropy Entropy ( S ) = ? d e f i = 1 c p i l o g 2 (

a) Calculate the entropy
Entropy(S)=?defi=1cpilog2(1pi)=i=1c-pilog2(pi)
Where pi is the proportion of S belonging to class i. Also note that log2(x)=log10(x)log10(2).
b) Construct the decision tree structure from the above examples, which would be learned by the ID3 algorithm.
c) Show the value of the information gain for each candidate attribute at each step in the construction of the tree.
In your report you need to include all details of the tree construction process following steps 1-3.
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 Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

Students also viewed these Databases questions