prepper_nested: Wrapper function for preparing recipes with nested resampling

Description Usage Arguments Details

View source: R/rsample_utils.R

Description

Makes it easier to prepare recipes using training data from nested resamples created with rolling_origin_nested.

Usage

1
prepper_nested(split, recipe, strings_as_factors = FALSE, ...)

Arguments

split

An rsplit object created with rolling_origin_nested.

recipe

An untrained recipe object.

strings_as_factors

A logical: should character columns be converted to factors? This affects the preprocessed training set (when retain = TRUE) as well as the results of bake.recipe. Unlike prep(), the default is FALSE.

...

Other arguments passed to prep.

Details

Sets the underlying prep() argument fresh to TRUE.


gacolitti/tidyroll documentation built on Sept. 13, 2020, 8 p.m.