Code
rec %>% step_impute_lower(carbon, hydrogen, has_neg) %>% prep()
Condition
Error in `step_impute_lower()`:
Caused by error in `prep()`:
x The following columns negative values: has_neg.
i Lower bound imputation is intended for data bounded at zero.
Code
bake(imputed_trained, new_data = biomass[, 4:7])
Condition
Error in `step_impute_lower()`:
! The following required column is missing from `new_data`: carbon.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Lower bound imputation 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
* Lower bound imputation for: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 3
-- Operations
* Lower bound imputation for: carbon and hydrogen
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 3
-- Training information
Training data contained 536 data points and no incomplete rows.
-- Operations
* Lower bound imputation for: carbon and hydrogen | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.