Question: 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.
 a) Calculate the entropy Entropy(S)=?defi=1cpilog2(1pi)=i=1c-pilog2(pi) Where pi is the proportion of

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!