-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
Another thing that I've seen is that people prep a recipe then use add_recipe(). Can we error when that happens and add something to the man file for add_recipe()?
library(tidymodels)
training <- mtcars[1:20, ]
testing <- mtcars[21:32, ]
model <- linear_reg() %>%
set_engine("lm")
workflow <- workflow() %>%
add_model(model)
recipe <- recipe(mpg ~ cyl + disp, training) %>%
step_log(disp) %>%
prep()
map_lgl(recipe$steps, is_trained)
#> [1] TRUE
workflow <- add_recipe(workflow, recipe)
fit_workflow <- fit(workflow, training)Created on 2022-09-21 by the reprex package (v2.0.1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels