Exercises

  1. Write a function to train Random forest models from a single predictor to full-house predictors to compare models’ prediction accuracy and find the best number of predictors and the predictors.

  2. Train Random forest models using the number of predictors find from exercise one and find out the best combination of the same number of predictors and the prediction accuracy.