We have a set of "verbs" to use with recipes:

- First you specify a dataset and variables.
- Next you add preprocessing steps.
- Then you prep the recipe to estimate the quantities for each step from the training data.
- Finally, you can apply this prepped recipe to new data with bake.
Feedback from users indicates that there is confusion around prep(), bake(), but especially juice(). The juice() function goes back to the prepped recipe and gets out the original training set with all steps applied. It is useful because the prepped recipe does have this information in it already.
In almost all cases these two are the same, where rec_prep is a prepped recipe:
juice(rec_rep)
bake(rec_prep, new_data = training_data)
Let's consider creating a new function that does the same thing juice() does, but with a new name. The juice() function will stay around but probably eventually be labeled "superseded".
We have a set of "verbs" to use with recipes:
Feedback from users indicates that there is confusion around
prep(),bake(), but especiallyjuice(). Thejuice()function goes back to the prepped recipe and gets out the original training set with all steps applied. It is useful because the prepped recipe does have this information in it already.In almost all cases these two are the same, where
rec_prepis a prepped recipe:Let's consider creating a new function that does the same thing
juice()does, but with a new name. Thejuice()function will stay around but probably eventually be labeled "superseded".