is_trained_workflow | R Documentation |
A trained workflow is one that has gone through fit()
,
which preprocesses the underlying data, and fits the parsnip model.
is_trained_workflow(x)
x |
A workflow. |
A single logical indicating if the workflow has been trained or not.
library(parsnip) library(recipes) library(magrittr) rec <- recipe(mpg ~ cyl, mtcars) mod <- linear_reg() mod <- set_engine(mod, "lm") wf <- workflow() %>% add_recipe(rec) %>% add_model(mod) # Before any preprocessing or model fitting has been done is_trained_workflow(wf) wf <- fit(wf, mtcars) # After all preprocessing and model fitting is_trained_workflow(wf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.