Code
bake(trained, new_data = smith_tr[, -1])
Condition
Error in `step_clean_levels()`:
! The following required column is missing from `new_data`: name.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Cleaning factor levels 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
* Cleaning factor levels for: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 5
-- Operations
* Cleaning factor levels for: Species
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 5
-- Training information
Training data contained 150 data points and no incomplete rows.
-- Operations
* Cleaning factor levels for: Species | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.