Get startedGet started for free

Random search with caret

Now you are going to perform a random search instead of grid search!

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

This exercise is part of the course

Hyperparameter Tuning in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Train control with random search
fitControl <- trainControl(method = "repeatedcv",
                           number = 3,
                           repeats = 5,
                           ___ = ___)
Edit and Run Code