Language -R
Use BostonHousing.csv file
Divide the housing set into a training and validation set (dedicate 60% to the training and 40% to the validation set). In order to reduce the remaining predictors, use the `regsubsets()` function of the **leaps** package as follows: Run `regsubsets()` with exhaustive search on the training set. Using adjusted R^2^s as a metric, choose the top three models from the exhaustive search. Then use each of these models separately to predict the validation set. Compare RMSE and MAPE derived from the validation set. Finally, describe the best model.
need code in R studio and also Discribe the model
Language -R Use BostonHousing.csv file Divide the housing set into a training and validation set (dedicate 60% to the tr
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am