Code
rec %>% step_rose(x) %>% prep()
Condition
Error in `step_rose()`:
Caused by error in `prep()`:
! `x` should be a factor variable.
Code
rec %>% step_rose(class, id) %>% prep()
Condition
Error in `step_rose()`:
Caused by error in `prep()`:
! The selector should select at most a single variable.
Code
recipe(Status ~ Age, data = credit_data0) %>% step_rose(Status) %>% prep()
Condition
Error in `step_rose()`:
Caused by error in `prep()`:
! Cannot have any missing values. NAs found in Status.
Code
recipe(~., data = df_char) %>% step_rose(x) %>% prep()
Condition
Error in `step_rose()`:
Caused by error in `prep()`:
! The `x` must only have 2 levels.
Code
recipe(~., data = mtcars) %>% step_rose(over_ratio = "yes") %>% prep()
Condition
Error in `step_rose()`:
Caused by error in `prep()`:
! `over_ratio` must be a number, not the string "yes".
Code
recipe(~., data = mtcars) %>% step_rose(minority_prop = TRUE)
Condition
Error in `step_rose()`:
! `minority_prop` must be a number, not `TRUE`.
Code
recipe(~., data = mtcars) %>% step_rose(minority_smoothness = TRUE)
Condition
Error in `step_rose()`:
! `minority_smoothness` must be a number, not `TRUE`.
Code
recipe(~., data = mtcars) %>% step_rose(majority_smoothness = TRUE)
Condition
Error in `step_rose()`:
! `majority_smoothness` must be a number, not `TRUE`.
Code
recipe(~., data = mtcars) %>% step_rose(seed = TRUE)
Condition
Error in `step_rose()`:
! `seed` must be a whole number, not `TRUE`.
Code
bake(trained, new_data = circle_example[, -3])
Condition
Error in `step_rose()`:
! The following required column is missing from `new_data`: class.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* ROSE based 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
* ROSE based on: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 2
-- Operations
* ROSE based on: class
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 2
-- Training information
Training data contained 400 data points and no incomplete rows.
-- Operations
* ROSE based on: class | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.