Code
prep(rec2, training = examples, verbose = FALSE)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 2
-- Training information
Training data contained 12 data points and no incomplete rows.
-- Operations
* Unordered variables: X1 and X2 | Trained
Code
prep(rec3, training = examples, verbose = FALSE)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 2
-- Training information
Training data contained 12 data points and no incomplete rows.
-- Operations
* Unordered variables: X1 | Trained
Code
bake(rec1_trained, new_data = examples[, 1, drop = FALSE])
Condition
Error in `step_unorder()`:
! The following required column is missing from `new_data`: X2.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Unordered variables: <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
* Unordered variables: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 2
-- Operations
* Unordered variables: X2
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 2
-- Training information
Training data contained 12 data points and no incomplete rows.
-- Operations
* Unordered variables: X2 | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.