tests/testthat/_snaps/shuffle.md

bake a single row

Code
  dat4 <- bake(rec4, dat[1, ])
Condition
  Warning:
  `new_data` contains a single row; unable to shuffle.

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

Code
  bake(rec1, dat[, 2:5])
Condition
  Error in `step_shuffle()`:
  ! The following required column is missing from `new_data`: x1.

empty printing

Code
  rec
Message

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

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

  -- Operations 
  * Shuffled: <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 
  * Shuffled: <none> | Trained

printing

Code
  print(rec)
Message

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

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

  -- Operations 
  * Shuffled: all_predictors()
Code
  prep(rec)
Message

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

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

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

  -- Operations 
  * Shuffled: x1, x2, x3, x4 | Trained


tidymodels/recipes documentation built on Jan. 25, 2025, 7:30 a.m.