Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3) Decision Trees and Information Gain (15 marks = 3+12] Let's assume we have the following data regarding the attributes of some food items (i.e.,
3) Decision Trees and Information Gain (15 marks = 3+12] Let's assume we have the following data regarding the attributes of some food items (i.e., what is their weight, what is their length, and what is their color), and finally the labels indicate whether they were considered eatable or not (i.e., the target output): Smell Normal Poor Poor Normal Normal Normal Normal Normal Normal Normal Normal Normal Normal Poor Poor Normal Length Short Short Long Long Short Short Short Short Long Long Long Long Long Short Long Short Color Orange Purple Purple Orange Orange Orange Orange Purple Orange Orange Orange Orange Orange Orange Orange Orange Eatable? No Yes No Yes Yes Yes Yes No No Yes No No No Yes Yes Yes i) What is the value of entropy at the root of the decision tree? ii) On the basis of Information Gain, choose the best attribute for classifying only at the first level of the decision tree (at root, no need for the whole tree)
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