vignettes/articles/template-cls-multi-class.R

#' We'll predict the island where the penguins were observed with two variables in the same unit (mm): bill length and bill depth.

#+ results = "hide", messages = FALSE
library(tidymodels)
tidymodels_prefer()
data(penguins)

penguins <- penguins %>% select(island, starts_with("bill_"))
penguins_train <- penguins[-c(21, 153, 31, 277, 1), ]
penguins_test  <- penguins[ c(21, 153, 31, 277, 1), ]

Try the parsnip package in your browser

Any scripts or data that you put into this service are public.

parsnip documentation built on Aug. 18, 2023, 1:07 a.m.