Code
step_hyperbolic(rec, func = "cos") %>% prep()
Condition
Error in `step_hyperbolic()`:
! `func` must be one of "sinh", "cosh", or "tanh", not "cos".
i Did you mean "cosh"?
Code
step_hyperbolic(rec, inverse = 2) %>% prep()
Condition
Error in `step_hyperbolic()`:
Caused by error in `prep()`:
! `x$inverse` must be `TRUE` or `FALSE`, not the number 2.
Code
bake(rec_trained, new_data = ex_dat[, 2, drop = FALSE])
Condition
Error in `step_hyperbolic()`:
! 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
* Hyperbolic sin (inv) transformation on: <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
* Hyperbolic sin (inv) transformation on: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 2
-- Operations
* Hyperbolic sin (inv) transformation on: x1 and x2
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 2
-- Training information
Training data contained 20 data points and no incomplete rows.
-- Operations
* Hyperbolic sin (inv) transformation on: x1 and x2 | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.