Question: Use set.seed ( 6 7 5 1 3 4 2 ) and split the economic data set into training and validation sets using 8 0

Use set.seed(6751342) and split the economic data set into training and validation sets using 80% and 20% split, respectively. How many rows are in the original data set, the training set, and the validation set?
Use set.seed(6751342) and create a regression decision tree for wage growth using economy, unemployment, and gdp as predictors. Include the cost-complexity (cp) table.
Plot the validation error against the cost-complexity parameter (cp). What is an appropriate cp value to use in pruning the tree?
Use set.seed(6751342) and prune the tree using the appropriate cp value and include the plot of the resulting decision tree.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!