Answered step by step
Verified Expert Solution
Link Copied!

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 

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Management A Practical Introduction

Authors: Angelo Kinicki, Denise Breaux Soignet

10th Edition

1260735168, 978-1260735161

More Books

Students also viewed these Programming questions

Question

c. What type of degree does it offer?

Answered: 1 week ago

Question

Explain four approaches to innovation.

Answered: 1 week ago

Question

How would I define the four functions of management?

Answered: 1 week ago