Nothing
Code
rec %>% step_bsmote(x) %>% prep()
Error <recipes_error_step>
Error in `step_bsmote()`:
Caused by error in `prep()`:
! `x` should be a factor variable.
Code
rec %>% step_bsmote(class, id) %>% prep()
Error <recipes_error_step>
Error in `step_bsmote()`:
Caused by error in `prep()`:
! The selector should select at most a single variable
Code
recipe(~., data = df_char) %>% step_bsmote(x) %>% prep()
Error <recipes_error_step>
Error in `step_bsmote()`:
Caused by error in `prep()`:
! All columns selected for the step should be double, or integer.
Code
recipe(Job ~ Age, data = credit_data) %>% step_bsmote(Job) %>% prep()
Error <recipes_error_step>
Error in `step_bsmote()`:
Caused by error in `prep()`:
! Cannot have any missing values. NAs found ind: Job.
Code
rec
Message <cliMessage>
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* BorderlineSMOTE based on: <none>
Code
rec
Message <cliMessage>
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Training information
Training data contained 32 data points and no incomplete rows.
-- Operations
* BorderlineSMOTE based on: <none> | Trained
Code
print(rec)
Message <cliMessage>
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 2
-- Operations
* BorderlineSMOTE based on: class
Code
prep(rec)
Message <cliMessage>
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 2
-- Training information
Training data contained 400 data points and no incomplete rows.
-- Operations
* BorderlineSMOTE based on: class | Trained
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.