I have the following code to tune the mtry hyperparameter of a random forest regression model:
set.seed(42) mtry <- 1:10 # Define train control trControl