Question: H3. Now apply bagging to the training set. What is the test set MSE for this approach? Below is the code that failed to work:

H3.

Now apply bagging to the training set. What is the test set MSE for this approach? Below is the code that failed to work: ```{r} bag_model <- train(training_onehot, training[,20], method = 'treebag', trControl = trControl) postResample(predict(bag_model, testing_onehot), testing$logSalary) ```

Please advise

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!