tune_model | R Documentation |
This function finds the best hyperparameters for a given model specification using a specified tuning grid and cross-validation.
tune_model(mspec, x, y, wts, param, nreps = 10)
mspec |
A model specification derived from the |
x |
The training data matrix. |
y |
The response vector. |
wts |
Optional class weights (if the underlying model supports it). |
param |
A |
nreps |
The number of bootstrap replications (default is 10). |
A data frame containing the best hyperparameter values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.