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

#' The example data has two predictors and an outcome with two classes. Both predictors are in the same units.

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

data_train <- two_class_dat[-(1:10), ]
data_test  <- two_class_dat[  1:10 , ]

Try the parsnip package in your browser

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

parsnip documentation built on June 24, 2024, 5:14 p.m.