| tl_tune_grid | R Documentation |
Tune hyperparameters for a model using grid search
tl_tune_grid(
data,
formula,
method,
param_grid,
folds = 5,
metric = NULL,
maximize = NULL,
verbose = TRUE,
...
)
data |
A data frame containing the training data |
formula |
A formula specifying the model |
method |
The modeling method to tune |
param_grid |
A named list of parameter values to tune |
folds |
Number of cross-validation folds |
metric |
Metric to optimize |
maximize |
Logical; whether to maximize (TRUE) or minimize (FALSE) the metric |
verbose |
Logical; whether to print progress |
... |
Additional arguments passed to tl_model |
A list with the best model and tuning results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.