subject

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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
question
Computers and Technology, 22.06.2019 22:10
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
You know the right answer?
1. Load the dataset bike. csv into memory. Then split the data into a training set containing 2/3 of...
Questions
question
Mathematics, 20.11.2019 02:31
question
English, 20.11.2019 02:31
question
Mathematics, 20.11.2019 02:31
Questions on the website: 13722360