Computers and Technology

1. Load the dataset bike. csv into memory. Then split the data into a training set containing 2/3 of the original data (test set containing remaining 1/3 of the original data). a. See Code 2. Build a tree model using function tree(). a. The response is count and the predictors are season, holiday, workingday, temp, atemp, humidity, windspeed, casual, and registered. b. Perform cross-validation to choose the best tree by calling cv. tree(). c. Plot the model results of b) and determine the best size of the optimal tree. d. Prune the tree by calling prune. tree() function with the best size found in c). e. Plot the best tree model. f. Compute the test error using the test data set. 3. Build a random forest model using function randomForest() a. The response is count and the predictors are season, holiday, workingday, temp, atemp, humidity, windspeed, casual, and registered. b. Compute the test error using the test data set. c. Extract variable importance measure using importance() function. d. Plot the variable importance using function varImpPlot(). Which are the top 2 important predictors in this model

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:30, edgytaehyung
Someone wishes to run the software on another computer system that runs an operating system that does not support the software what can he do
Answers: 3
image
Computers and Technology, 22.06.2019 23:20, nina1390
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, paulusl19
The first screen you see when you open word2016 what is called?
Answers: 1
image
Computers and Technology, 24.06.2019 16:00, kamo90
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
Do you know the correct answer?
1. Load the dataset bike. csv into memory. Then split the data into a training set containing 2/3 of...

Questions in other subjects: