Description Usage Arguments Details
View source: R/rsample_utils.R
This function makes it easy to fit a model using a nested split and a recipe object. A nested
split is one created with rolling_origin_nested
, where each split is nested by a
time variable.
1 2 3 4 5 6 7 | fit_rsample_nested(
split = NULL,
recipe,
model_func,
strings_as_factors = FALSE,
...
)
|
split |
An |
recipe |
A trained or untrained recipe object. If not trained, |
model_func |
A model function (ex: |
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 |
... |
Other arguments passed to |
If ...
does not include formula
, the formula will be extracted from recipe
using formula(recipe)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.