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, 23.06.2019 19:00
Write a program that displays the following menu: geometry calculator 1. calculate the area of a circle 2. calculate the area of a rectangle 3. calculate the area of a triangle 4. quit enter your choice (1-4): if the user enters 1, the program should ask for the radius of the circle and then display its area. use the following formula: area = ď€(the square of r) use 3.14159 for ď€ and the radius of the circle for r. if the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. use the following formula: area = length * width if the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. use the following formula: area = base * height * .5 if the user enters 4, the program should end. input validation: display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. note: if the user enters an improper menu choice (1-4), the program prints "the valid choices are 1 through 4. run the program again and select one of those." if the user enters a negative radius, the program prints "the radius can not be less than zero." if the user enters a negative value for height or base, the program prints "only enter positive values for base and height."
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
Jason is working on a microsoft excel worksheet and he wants to create a print preview shortcut. his teacher asks him to access the customization option to create the new shortcut. which two tabs should jason select to place the print preview shortcut on the worksheet toolbar? a. new tab (custom) and new group (custom) b. new file tab (custom) and new tab (custom) c. new custom group and new command d. new custom tab and new command
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
Colby works as a shipping clerk for a major package delivery service. some of his daily tasks include tracking shipments and entering orders. which aspect of the information technology cluster would he most likely be trained in? a.networkingb.databasesc.hardwared.software
Answers: 2
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
Business, 13.11.2020 18:30
question
Mathematics, 13.11.2020 18:30
question
Mathematics, 13.11.2020 18:30
Questions on the website: 13722362