Lecture 12
Lecture 12
I (S11, S21)= -
(2/5)log(2/5) -
(3/5)log(3/5)
Prof. Subir Kumar Das, Dept. of CSE 7
Example
I(S12,S22)= -(4/4)
log(4/4) – 0
I(S13,S23) =-
(2/5)log(2
/5)
-(3/5)log(3/5)
I(S12,S22)= -(2/6)
log(2/6) – (4/6)
log(4/6)
I(S12,S22)= -(3/4)
log(3/4) – (1/4)
log(1/4)
• Repeat the same procedure on every branch until the decision node of
each branch is finalized.
• Set the test data set for the decision node
• Outlook=Sunny |Humidity=High
• Outlook=Sunny | Humidity=Normal
Prof. Subir Kumar Das, Dept. of CSE 13
Example
• Outlook=Sunny | Wind=Strong
• Outlook=Sunny | Wind=Weak