1. Learn
  2. /
  3. Courses
  4. /
  5. Handling Missing Data with Imputations in R

Connected

Exercise

Speed-accuracy trade-off

In the last video, you have seen there are two knobs you can tune to influence the performance of the random forests:

  • Number of decision trees in each forest.
  • Number of variables used for splitting within decision trees.

Increasing each of them might improve the accuracy of the imputation model, but it will also require more time to run. In this exercise, you will explore these ideas yourself by fitting missForest() to the biopics data twice with different settings. As you follow the instructions, pay attention to the errors you will be printing, and to the time the code takes to run.

Instructions 1/2

undefined XP
  • 1
    • Run missForest() on biopics with 5 decision trees and 2 variables used for splitting and print the imputation error.
  • 2
    • Run missForest() on biopics with 50 decision trees and 6 variables used for splitting and print the imputation error.