Datamining
Datamining
X1 3 5 7 8 10
X2 3 3 4 5 7
6(a). Find Entropy, Information Gain and Gini Index for a1, a2, a3 from the given datasets:
[8]
Instance 1 2 3 4 5 6 7 8 9
a1 Blue Green Red Blue Blue Red Blue Red Red
a2 Blue Blue Blue Red Red Green Green Blue Red
a3 Blue Blue Blue Red Red Red Red Red Red
Target 1 2 2 2 2 1 1 1 1
class
6(b). Using the above datasets, explain ID3 Algorithm and generate a decision tree. [7]
7. Draw decision trees for any two of the following boolean functions: [5+5]