fully_trained: Check to see if a recipe is trained/prepared

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Check to see if a recipe is trained/prepared

Usage

1

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.

Examples

1
2
3
4
5
6
rec <- recipe(Species ~ ., data = iris) %>%
  step_center(all_numeric())

rec %>% fully_trained

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

recipes documentation built on July 2, 2020, 4:02 a.m.