1. Learn
  2. /
  3. Courses
  4. /
  5. Hyperparameter Tuning in R

Connected

Exercise

Grid search with range of hyperparameters

In chapter 1, you learned how to use the expand.grid() function to manually define a set of hyperparameters. The same function can also be used to define a grid with ranges of hyperparameters.

The voters_train_data dataset has been loaded for you, as have the caret and tictoc packages.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Define a grid with the neural network hyperparameter size ranging from 1 to 5 with a step-size of 1.