Question: For Exercises 1 4 2 0 , work with the adult _ ch 6 _ training and adult _ ch 6 _ test data sets.
For Exercises work with the adultchtraining and adultchtest data sets. Use either Python or R to solve each problem.
Create a CART model using the training data set that predicts income using marital status and capital gains and losses. Visualize the decision tree that is provide the decision tree output Describe the first few splits in the decision tree.
Develop a CART model using the test data set that utilizes the same target and predictor variables. Visualize the decision tree. Compare the decision trees. Does the test data result match the training data result?
Use the training data set to build a C model to predict income using marital status and capital gains and losses. Specify a minimum of cases per terminal node. Visualize the decision tree. Describe the first few splits in the decision tree.
How does your C model compare to the CART model? Describe the similarities and differences.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
