train_predict: Create predictions given a resample and a recipe.

Description Usage Arguments Details Value

Description

This is a generic function. Plug your custom 'scoring_func'.

Usage

1
train_predict(split, rec, params, target_var, scoring_func, ...)

Arguments

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.

Details

'scoring_func' cab return a single score as a numeric vector, or multiple scores in a data.frame.

Value

A data.frame with columns 'target' and 'predicted'.


artichaud1/tidygrid documentation built on May 10, 2019, 9:28 a.m.