Code
bake(rec_trained, new_data = ames[, -1])
Condition
Error in `step_collapse_cart()`:
! The following required column is missing from `new_data`: MS_SubClass.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Collapsing factor levels using CART: <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
* Collapsing factor levels using CART: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 73
-- Operations
* Collapsing factor levels using CART: Neighborhood and Central_Air
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 73
-- Training information
Training data contained 2930 data points and no incomplete rows.
-- Operations
* Collapsing factor levels using CART: Neighborhood | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.