Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Topic: Decision Tree Please show step by step on how you got your answer. Problem 3: Decision Tree In order to reduce my email load,
Topic: Decision Tree
Problem 3: Decision Tree In order to reduce my email load, I decide to implement a machine-learning algorithm to decide whether or not I should read an email, or simply file it away instead. To train my model, I obtain the following data set of binary-valued features (1 for yes, O for no) about each email, including whether l know the author or not, whether the email is long or short, and whether it has any several key words, along with my final decision about whether to read it (y = +1 for "read", y =-1 for "discard") a2 is long? a3 a4 a5 know author? has "research"? has "grade"?has "lottery"? read? 0 0 In the case of any ties, we will prefer to predict class +1 Question 1) 2) 3) Calculate the entropy of the class variable y Calculate the information gain for each feature ai. Which feature should I split on first? Draw the complete decision tree that will be learned from these data Please show step by step on how you got your answer.
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