Session Ready
Exercise

The best performing parameter

You've now built models where you've varied the random forest-specific hyperparameter mtry in the hopes of improving your model further. Now you will measure the performance of each mtry value across the 5 cross validation partitions to see if you can improve the model.

Remember that the validate MAE you calculated two exercises ago of 0.795 was for the default mtry value of 2.

Instructions
100 XP
  • Generate predictions for each mtry/fold combination.
  • Calculate the MAE for each mtry/fold combination.
  • Calculate the mean MAE for each value of mtry.