Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are provided with some fruits to eat which you have never eaten or seen before. Some of the fruits have been determined as sour/bad
You are provided with some fruits to eat which you have never eaten or seen before. Some of the fruits have been determined as sour/bad taste and others as not (told by people who tasted them earlier). You have the following data to consider: Sr. No. Not-Heavy Smelly Spotted Smooth Edible 1 2 YES NO YES NO NO NO YES YES NO YES NO NO YES 3 YES YES 4 NO NO NO YES NO 5 YES YES YES NO NO 6 YES NO YES YES NO 7 NO NO YES NO 8 NO NO NO NO 9 NO 10 YES ? 11 YES YES YES The following are test instances YES YES YES ? YES NO YES YES NO NO ? You know that fruits (1-8) are of good taste but you do not know about fruits (9-11). For the questions (a-d), consider only fruits (1-8). a. What is the entropy of Edible? b. Which attribute should you choose as the root of a decision tree? c. What is the information gain of the attribute you chose in the previous question? d. Build a decision tree to classify fruits as edible or not. e. Classify fruits (9.10 and 11) using the decision tree as edible or not edible. You are provided with some fruits to eat which you have never eaten or seen before. Some of the fruits have been determined as sour/bad taste and others as not (told by people who tasted them earlier). You have the following data to consider: Sr. No. Not-Heavy Smelly Spotted Smooth Edible 1 2 YES NO YES NO NO NO YES YES NO YES NO NO YES 3 YES YES 4 NO NO NO YES NO 5 YES YES YES NO NO 6 YES NO YES YES NO 7 NO NO YES NO 8 NO NO NO NO 9 NO 10 YES ? 11 YES YES YES The following are test instances YES YES YES ? YES NO YES YES NO NO ? You know that fruits (1-8) are of good taste but you do not know about fruits (9-11). For the questions (a-d), consider only fruits (1-8). a. What is the entropy of Edible? b. Which attribute should you choose as the root of a decision tree? c. What is the information gain of the attribute you chose in the previous question? d. Build a decision tree to classify fruits as edible or not. e. Classify fruits (9.10 and 11) using the decision tree as edible or not edible
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