Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 Consider the decision tree shown in the diagram below. The counts shown in the leaf nodes correspond to the number of training records
Question 2 Consider the decision tree shown in the diagram below. The counts shown in the leaf nodes correspond to the number of training records associated with the nodes 0 0 5 0 (a) Compute the training error rate for the tree (b) Estimate the generalization error for the tree using the pessimistic error rate approach (Assume the cost of each leaf is 2) (c) Suppose the nodes labeled as D and E in the previous decision tree are replaced by their corresponding leaf nodes. Estimate the generalization error of the pruned tree using the pessimistic error rate approach. Use your answers for part (b) and (c) to determine whether the original tree should be pruned (d) Using the validation set shown below, determine whether the nodes D and E in the decision tree should be replaced by their corresponding leaf nodes A BCD E Class 0 10 1 0- 0 10 0 0 11 1 1 11 011 Question 2 Consider the decision tree shown in the diagram below. The counts shown in the leaf nodes correspond to the number of training records associated with the nodes 0 0 5 0 (a) Compute the training error rate for the tree (b) Estimate the generalization error for the tree using the pessimistic error rate approach (Assume the cost of each leaf is 2) (c) Suppose the nodes labeled as D and E in the previous decision tree are replaced by their corresponding leaf nodes. Estimate the generalization error of the pruned tree using the pessimistic error rate approach. Use your answers for part (b) and (c) to determine whether the original tree should be pruned (d) Using the validation set shown below, determine whether the nodes D and E in the decision tree should be replaced by their corresponding leaf nodes A BCD E Class 0 10 1 0- 0 10 0 0 11 1 1 11 011
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