Skip to content

Commit

Permalink
Add set_encoding()
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Apr 4, 2024
1 parent 337033e commit da6d6d9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/testthat/test-mda.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ test_that("mda + custom parsnip model + predict() works", {
defaults = list()
)
)
set_encoding(
model = "mixture_da",
eng = "mda",
mode = "classification",
options = list(
predictor_indicators = "traditional",
compute_intercept = TRUE,
remove_intercept = TRUE,
allow_sparse_x = FALSE
)
)
mda_fit <- mixture_da(sub_classes = 2) %>%
set_engine("mda") %>%
fit(Species ~ ., data = iris)
Expand Down

0 comments on commit da6d6d9

Please sign in to comment.