Tune hyperparameters for a model using random search
tl_tune_random(
data,
formula,
method,
param_space,
n_iter = 10,
folds = 5,
metric = NULL,
maximize = NULL,
verbose = TRUE,
seed = NULL,
...
)A list with the best model and tuning results
A data frame containing the training data
A formula specifying the model
The modeling method to tune
A named list of parameter spaces to sample from
Number of random parameter combinations to try
Number of cross-validation folds
Metric to optimize
Logical; whether to maximize (TRUE) or minimize (FALSE) the metric
Logical; whether to print progress
Random seed for reproducibility
Additional arguments passed to tl_model