tests/testthat/_snaps/range.md

warns when NaN is returned due to zero variance

Code
  prep(rec)
Condition
  Warning:
  Column `x` returned NaN. Consider using `step_zv()` to remove variables containing only a single value.
Message

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

  -- Inputs 
  Number of variables by role
  predictor: 1

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

  -- Operations 
  * Range scaling to [0,1] for: x | Trained

warns when NaN is returned due to Inf or -Inf

Code
  prep(rec)
Condition
  Warning:
  Column `x` returned NaN. Consider avoiding `Inf` values before normalising.
Message

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

  -- Inputs 
  Number of variables by role
  predictor: 1

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

  -- Operations 
  * Range scaling to [0,1] for: x | Trained
Code
  prep(rec)
Condition
  Warning:
  Column `x` returned NaN. Consider avoiding `Inf` values before normalising.
Message

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

  -- Inputs 
  Number of variables by role
  predictor: 1

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

  -- Operations 
  * Range scaling to [0,1] for: x | Trained

empty printing

Code
  rec
Message

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

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

  -- Operations 
  * Range scaling to [0,1] 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 
  * Range scaling to [0,1] for: <none> | Trained

printing

Code
  print(rec)
Message

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

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

  -- Operations 
  * Range scaling to [0,1] for: disp and 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 
  * Range scaling to [0,1] for: disp and wt | Trained


topepo/recipes documentation built on April 10, 2024, 10:30 p.m.