Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You work in a weather forecasting company and your job as a machine learning expert is to design a decision tree which would predict
You work in a weather forecasting company and your job as a machine learning expert is to design a decision tree which would predict whether it is going to rain today (WillRain? = 1) or not (WillRain? = 0). You are given a dataset D with the following attributes: IsHumid = {0,1}, IsCloudy (0,1), RainedYesterday (0,1} and Temp > 20 {0,1} To simplify your computations please use log2 (3) ~ IsHumid IsCloudy Rained Yesterday 1 1 0 0 0 1 1 0 1 0 1 1 1 1 0 1 1 0 0 0 1 0 0 1 Temp>20 0 0 0 1 1 1 0 1 WillRain? 1 0 0 0 0 1 0 0 (a) What is the entropy of the label 'WillRain??? (b) What should the proportion of the examples labeled WillRain?= 1 be, in order to get the maximum entropy value for the label? (c) Compute the Gain(D. IsCloudy).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Sure lets tackle these questions one by one a Entropy of the label WillRain Entropy measures the impurity or uncertainty in a bunch of examples Its calculated using the formula EntropyS p log2p p log2...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