300 likes | 1.29k Views
ID3 Decision Tree Example. The Simpsons Family. Calculations. Entropy (4 F ,5 M ) = -(4/9)log 2 (4/9) - (5/9)log 2 (5/9) = 0.9911. Calculate Gain(Hair Length), Gain( Height), Gain (Weight). Decision Tree. no. yes. Weight <= 160?. no. yes. Hair Length <= 2?.
E N D
ID3 Decision Tree Example The Simpsons Family
Calculations Entropy(4F,5M) = -(4/9)log2(4/9) - (5/9)log2(5/9) = 0.9911 Calculate Gain(Hair Length), Gain( Height), Gain (Weight)
Decision Tree no yes Weight <= 160? no yes Hair Length <= 2?
Decision Tree Weight <= 160? yes no Hair Length <= 2? Male yes no Male Female