Skip to content

Commit

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

set_model_arg(
model = "svm_linear",
eng = "linfa",
parsnip = "cost",
original = "cost",
func = list(pkg = "dials", fun = "cost"),
has_submodel = FALSE
)

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

0 comments on commit 74fce60

Please sign in to comment.