Question: This exercise considers 2 pruning of decision trees. a. Create a data set with two input attributes, such that the information gain at the

This exercise considers χ2 pruning of decision trees.

a. Create a data set with two input attributes, such that the information gain at the root of the tree for both attributes is zero, but there is a decision tree of depth 2 that is consistent with all the data. What would χ2 pruning do on this data set if applied bottom up? If applied top down?

b. Modify DECISION-TREE-LEARNING to include χ2 -pruning. You might wish to consult Quinlan (1986) for details.

Step by Step Solution

3.50 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer a One example of such a dataset with two input attributes could be Attribute 1 Attribute 2 Class 0 0 NO 0 1 NO 1 0 YES 1 1 YES In this dataset the information gain at the root of the tree for b... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Artificial Intelligence A Modern approach Questions!