Nothing
Code
prep(step_cnn(rec, x))
Condition
Error in `step_cnn()`:
Caused by error in `prep()`:
! `x` should be a factor variable.
Code
prep(step_cnn(rec, class, id))
Condition
Error in `step_cnn()`:
Caused by error in `prep()`:
! The selector should select at most a single variable.
Code
prep(step_cnn(recipe(~., data = df_char), x))
Condition
Error in `step_cnn()`:
Caused by error in `prep()`:
x All columns selected for the step should be double or integer.
* 1 factor variable found: `y`
Code
prep(step_cnn(recipe(Status ~ Age, data = credit_data0), Status))
Condition
Error in `step_cnn()`:
Caused by error in `prep()`:
! Cannot have any missing values. NAs found in Status.
Code
prep(step_cnn(recipe(class ~ ., data = df_mixed), class, distance_with = c(x,
name)))
Condition
Error in `step_cnn()`:
Caused by error in `prep()`:
x All columns selected for the step should be double or integer.
* 1 factor variable found: `name`
Code
bake(prep(step_cnn(recipe(class ~ x + y, data = circle_example), class,
distance = "L2")), new_data = NULL)
Condition
Error in `step_cnn()`:
! `distance` must be one of "euclidean", "cosine", "mahalanobis", "manhattan", "chebyshev", "squared_chord", "matusita", "hellinger", "bhattacharyya", "canberra", "soergel", "lorentzian", "jeffreys", "topsoe", "jensen-shannon", "jensen_difference", "taneja", or "kumar-johnson", not "L2".
Code
step_cnn(recipe(~., data = mtcars), seed = TRUE)
Condition
Error in `step_cnn()`:
! `seed` must be a whole number, not `TRUE`.
Code
res <- bake(prep(step_cnn(recipe(class ~ x + y, data = circle_example), class)),
new_data = NULL)
Condition
Warning in `prep()`:
Unused factor level "unused" in `class` was dropped.
i Level with zero observations is skipped when computing sampling targets.
Code
bake(trained, new_data = circle_example[, -3])
Condition
Error in `step_cnn()`:
! 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
* CNN 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
* CNN based on: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 2
-- Operations
* CNN 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
* CNN 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.