Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Decision tree problem (30 pts) Consider the following table of observations No. Outlook Temperature Humidity Windy Play Golf? 1 sunny hot 2 sunny hot 3

Decision tree problem

image text in transcribed

(30 pts) Consider the following table of observations No. Outlook Temperature Humidity Windy Play Golf? 1 sunny hot 2 sunny hot 3 overcast hot 4 rain mild 5 rain cool 6 rain cool 7 overcast cool 8 sunny mild 9 sunny cool 10 rain 11 sunny mild 12 overcast mild 13 overcast hot 14 rain mild high false N high high false Y high false Y normal fa Y normal true N normal true Y nig normal false Y norma false Y normal true Y high normal false Y high true N true N false N true Y From the classified examples in the above table, construct two decision trees (by hand) for the classification "Play Golf." (a) For the first tree, use Temperature as the root node (this is a really bad choice.) Continue the construction of tree as discussed in class for the subsequent nodes using information gain. Remember that different attributes can be used in different branches on a given level of the tree. (b) For the second tree, follow the Decision Tree Learning algorithm described in class At each step, choose the attribute with the highest information gain. Work out the computations of information gain by hand and draw the decision tree (30 pts) Consider the following table of observations No. Outlook Temperature Humidity Windy Play Golf? 1 sunny hot 2 sunny hot 3 overcast hot 4 rain mild 5 rain cool 6 rain cool 7 overcast cool 8 sunny mild 9 sunny cool 10 rain 11 sunny mild 12 overcast mild 13 overcast hot 14 rain mild high false N high high false Y high false Y normal fa Y normal true N normal true Y nig normal false Y norma false Y normal true Y high normal false Y high true N true N false N true Y From the classified examples in the above table, construct two decision trees (by hand) for the classification "Play Golf." (a) For the first tree, use Temperature as the root node (this is a really bad choice.) Continue the construction of tree as discussed in class for the subsequent nodes using information gain. Remember that different attributes can be used in different branches on a given level of the tree. (b) For the second tree, follow the Decision Tree Learning algorithm described in class At each step, choose the attribute with the highest information gain. Work out the computations of information gain by hand and draw the decision tree

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_step3

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

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago