tests/testthat/_snaps/collapse_cart.md

bake method errors when needed non-standard role columns are missing

Code
  bake(rec_trained, new_data = ames[, -1])
Condition
  Error in `step_collapse_cart()`:
  ! The following required column is missing from `new_data`: MS_SubClass.

empty printing

Code
  rec
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  outcome:    1
  predictor: 10

  -- Operations 
  * Collapsing factor levels using CART: <none>
Code
  rec
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  outcome:    1
  predictor: 10

  -- Training information 
  Training data contained 32 data points and no incomplete rows.

  -- Operations 
  * Collapsing factor levels using CART: <none> | Trained

printing

Code
  print(rec)
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  outcome:    1
  predictor: 73

  -- Operations 
  * Collapsing factor levels using CART: Neighborhood and Central_Air
Code
  prep(rec)
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  outcome:    1
  predictor: 73

  -- Training information 
  Training data contained 2930 data points and no incomplete rows.

  -- Operations 
  * Collapsing factor levels using CART: Neighborhood | Trained


tidymodels/embed documentation built on Sept. 28, 2024, 12:35 p.m.