Description Usage Arguments Details Value
Perform random search using a paramset.
1 2 | random_search(resamples, recipe, param_set, n, scoring_func, ...,
verbosity = TRUE)
|
resamples |
A data.frame with columns 'splits' and 'id', created using the 'rsample' package. |
recipe |
The recipe to use. See package 'recipes'. |
param_set |
Param set created by calling ParamHelpers::makeParamset. |
n |
Number of parameter combinations to generate. |
scoring_func |
Your custom train/predict/score function. Must take as parameters:
|
... |
Optional params passed to train_predict_func. |
'scoring_func' can return a single score as a numeric vector, or multiple scores in a data.frame.
A tidy data.frame, with one column per parameter, columns to identify the paramset and the fold, a column giving the row indices of the evaluation dataset, and columns for the performance scores (these are taken from the scoring function if it returned a data.frame, otherwise it will just be a _score_ column).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.