Decision Tree Explanation
Decision Tree Explanation
1. Dataset:
|-------|----------|-------------|-----------|--------|-----------|
2. Dataset Entropy:
= 0.940
- Outlook:
IG(Outlook) = 0.940 - 0.693 = 0.247
- Temperature:
- Humidity:
- Wind:
- Sub-nodes:
- Sunny:
- Humidity:
- High -> No
- Rain:
- Wind:
- Strong -> No
Outlook
|-- Sunny
| |-- Humidity
| |-- High: No
|-- Rain
|-- Wind
|-- Strong: No
6. Python Code:
See the attached Python code for implementing and visualizing the decision tree.