Skip to contents

Estimate recipe parameters from training data

Usage

morie_ml_prep(recipe, data)

Arguments

recipe

A morie_ml_recipe.

data

Training data.frame.

Value

The recipe with estimated params and prepped = TRUE.

Examples

morie_ml_prep(morie_ml_recipe("mpg", "hp"), mtcars)
#> <morie_ml_recipe>
#>   outcome:    mpg
#>   predictors: hp
#>   steps:      impute=mean center=TRUE scale=TRUE
#>   prepped:    TRUE