tests/testthat/_snaps/normalize.md

warns on zv

Code
  prep(rec1)
Condition
  Warning:
  Column(s) have zero variance so scaling cannot be used: `zero_variance`. Consider using `step_zv()` to remove those columns before normalizing
Message

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

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

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

  -- Operations 
  * Centering and scaling for: carbon, hydrogen, oxygen, nitrogen, ... | Trained

normalizing with case weights

Code
  rec
Message

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

  -- Inputs 
  Number of variables by role
  outcome:      1
  predictor:    9
  case_weights: 1

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

  -- Operations 
  * Centering and scaling for: disp, hp, drat, wt, qsec, ... | Trained, weighted
Code
  rec
Message

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

  -- Inputs 
  Number of variables by role
  outcome:      1
  predictor:    9
  case_weights: 1

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

  -- Operations 
  * Centering and scaling for: cyl, disp, hp, drat, ... | Trained, ignored
    weights

empty printing

Code
  rec
Message

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

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

  -- Operations 
  * Centering and scaling for: <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 
  * Centering and scaling for: <none> | Trained

printing

Code
  print(rec)
Message

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

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

  -- Operations 
  * Centering and scaling for: disp, wt
Code
  prep(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 
  * Centering and scaling for: disp, wt | Trained


Try the recipes package in your browser

Any scripts or data that you put into this service are public.

recipes documentation built on Aug. 26, 2023, 1:08 a.m.