Code
dat4 <- bake(rec4, dat[1, ])
Condition
Warning:
`new_data` contains a single row; unable to shuffle.
Code
bake(rec1, dat[, 2:5])
Condition
Error in `step_shuffle()`:
! The following required column is missing from `new_data`: x1.
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
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.