Skip to content

New function name for juice() #543

@juliasilge

Description

@juliasilge

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

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions