Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Apply the Decision Tree(DT) algorithm to the training data in below table and clearly mention all steps and calculations of Entropy and Information Gain. Make
Apply the Decision Tree(DT) algorithm to the training data in below table and clearly mention all steps and calculations of Entropy and Information Gain. Make Decision Tree after applying calculations.
S# | Holiday | Weather | Paper | Picnic (Category) |
1 | Yes | Rainy | easy | No |
2 | Yes | Rainy | Difficult | No |
3 | Yes | Rainy | Difficult | Yes |
4 | Yes | Sunny | Difficult | Yes |
5 | Yes | Sunny | easy | Yes |
6 | Yes | Sunny | easy | No |
7 | Yes | Rainy | Difficult | No |
8 | Yes | Sunny | Difficult | Yes |
9 | No | Sunny | Difficult | No |
- Which attribute would information gain choose as the root of the tree?
- Draw the decision tree that would be constructed by recursively applying information gain to select roots of sub-trees, as in the Decision-Tree-Learning algorithm.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started