Question: This question uses the Auto data set in the ISLR package. Use mpg as the dependent variable and use horsepower as the independent variable. Use
a. 9.27 b. 7.94 c. 8.19 d. 6.15 e. 4.24
This question uses the Auto data set in the ISLR package. Use mpg as the dependent variable and use horsepower as the independent variable. Use KNN regression and 10-fold cross validation with 2 repeats. Preprocess with center and scale, and set k to equal 43. What is the RMSE of the optimal model? Use set.seed(777).
Answers:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
