Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fully_trained

Check to see if a recipe is trained/prepared


Description

Check to see if a recipe is trained/prepared

Usage

fully_trained(x)

Arguments

x

A recipe

Value

A logical which is true if all of the recipe steps have been run through prep. If no steps have been added to the recipe, TRUE is returned only if the recipe has been prepped.

Examples

rec <- recipe(Species ~ ., data = iris) %>%
  step_center(all_numeric())

rec %>% fully_trained()


rec %>% prep(training = iris) %>% fully_trained()

recipes

Preprocessing Tools to Create Design Matrices

v0.1.16
MIT + file LICENSE
Authors
Max Kuhn [aut, cre], Hadley Wickham [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.