Skip to content

Commit

Permalink
add model args for naive_Bayes(engine = "linfa")
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Jul 29, 2024
1 parent 4db6ab2 commit 4e620bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/mod-naive_Bayes.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ make_naive_Bayes_linfa <- function() {
)
)

parsnip::set_model_arg(
model = "naive_Bayes",
eng = "linfa",
parsnip = "smoothness",
original = "smoothness",
func = list(pkg = "dials", fun = "smoothness"),
has_submodel = FALSE
)

parsnip::set_encoding(
model = "naive_Bayes",
mode = "classification",
Expand Down

0 comments on commit 4e620bc

Please sign in to comment.