For this question, please use dec_data_modified.csv and down…
For this question, please use dec_data_modified.csv and download it by right click and save as. Please construct a training data set and a testing data set by using 80% and 20% of the master data, respectively. To ensure the replicability of the exercise, please set the random seed to 1. What is the number of observations assigned to the training data?
Read DetailsFor this question, please use dec_data_modified.csv and down…
For this question, please use dec_data_modified.csv and download it by right click and save as. Fit the classification tree to the training data using “rpart” as we did in homework 5. To ensure the replicability of the exercise, please set the random seed to 1. What is the accuracy using the fitted tree and the testing data?
Read Details