Code
spec <- discrim_linear(penalty = -1) %>% set_engine("MASS") %>% set_mode(
"classification")
fit(spec, factor ~ ., glass_tr)
Condition
Error in `fit()`:
! `penalty` must be a number larger than or equal to 0 or `NULL`, not the number -1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.