Description Usage Arguments Details Value
This is a generic function. Plug your custom 'scoring_func'.
1 | train_predict(split, rec, params, target_var, scoring_func, ...)
|
split |
A single split object. See 'rsample' package. |
rec |
Recipe. *Must have been prepped using 'retain = TRUE'. See 'recipes' package. |
params |
List of parameters passed to the 'scoring_func' function. |
target_var |
Name of the target variable in the resample. |
scoring_func |
Your custom train/predict/score function. |
... |
Optional params passed to scoring_func. |
'scoring_func' cab return a single score as a numeric vector, or multiple scores in a data.frame.
A data.frame with columns 'target' and 'predicted'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.