Question: a) Table 3 below is a data of a training dataset with 7 samples for purchasing laptop. Table 3 RID Age Earning Class 1
a) Table 3 below is a data of a training dataset with 7 samples for purchasing laptop. Table 3 RID Age Earning Class 1 30 High No 2 30 High No 3 31...40 High Yes 4 >40 Medium Yes 5 >40 Low Yes 69 >40 Low Low 31...40 Low Yes Based on the information given, calculate the Entropy for the sample. [5 marks] Find the Information Gain of Age attribute. [8 marks] ii. iii. Find the Information Gain of Earning attribute. [7 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
