00:01
Hello student, here the tree is given to us and its split nodes are given as decision tree.
00:07
This is mainly based on the decision tree.
00:09
Here i have to calculate gain index and for the split node and for the main node or the decision node and after this i have to calculate the entropy.
00:21
So here s is the node i suppose and it is split into two nodes s1 and s2.
00:26
So here 402 for the s node and after splitting s1 and s2 two decisions are created here.
00:37
So s1 130 and for s2 0010.
00:41
So gain index can be calculated with the help of the formula 1 -pi probability -p1 probability p2 probability at the particular node.
00:52
So here the node i am taking s.
00:54
So here 4 divided by 6, 4 is the value and 6 will be 4 plus 0 plus 2.
01:02
So here gain index is equal to the formula is equal to gain for the gain index equal to 1 minus summation of i equal to 1 up to mfi square.
01:19
So this is the formula of gain index.
01:23
With the help of this we can calculate the gain index.
01:27
S1 and s2 are the child node and s is the parent node here and here probabilities fi is the probability.
01:37
This is denoting the probability here.
01:39
So probability is 4, 4 is 4 is 4 by 6, 2 is 2 by 6...