Decision Tree
Decision Tree
I ( p , n) =
−p
p+n ( )
log 2
p
−
n
p +n p+ n
log 2(
n
p+n
)
Entropy=∑ ¿
a. Select the attribute with the highest gain as the next node. In this case it’s
Humidity.
b. Humidity has 2 categories – High & Normal. So the next nodes under Humidity
would be High & Normal.
c. Mark Yes / No decision under each node – High & Normal by referring the data.
Outlook
Yes
Humidity Wind
No Yes No Yes
Test Data