Decision Tree

Interactive visualization of building a decision tree using information gain

1s5s10s
Start2% CompleteFinish
Step 1: Current Dataset

Dataset with 14 instances

S={9:YES,5:NO}S = \{9:\text{YES}, 5:\text{NO}\}

E(S)=914log2914514log2514=0.940E(S) = -\frac{9}{14} log_2 \frac{9}{14} - \frac{5}{14} log_2 \frac{5}{14} = 0.940

Current Dataset
IDoutlooktemperaturehumiditywindPlay Tennis
1SunnyHotHighWeak
No
2SunnyHotHighStrong
No
3OvercastHotHighWeak
Yes
4RainMildHighWeak
Yes
5RainCoolNormalWeak
Yes
6RainCoolNormalStrong
No
7OvercastCoolNormalStrong
Yes
8SunnyMildHighWeak
No
9SunnyCoolNormalWeak
Yes
10RainMildNormalWeak
Yes
11SunnyMildNormalStrong
Yes
12OvercastMildHighStrong
Yes
13OvercastHotNormalWeak
Yes
14RainMildHighStrong
No