Skip to content

Commit 61d8013

Browse files
committed
Remove prob prediction module for LiblineaR SVM
1 parent fc21c9e commit 61d8013

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

R/svm_linear_data.R

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -123,27 +123,6 @@ set_pred(
123123
)
124124
)
125125
)
126-
set_pred(
127-
model = "svm_linear",
128-
eng = "LiblineaR",
129-
mode = "classification",
130-
type = "prob",
131-
value = list(
132-
pre = function(x, object) {
133-
rlang::abort(
134-
paste0("The LiblineaR engine does not support class probabilities ",
135-
"for any `svm` models.")
136-
)
137-
},
138-
post = NULL,
139-
func = c(fun = "predict"),
140-
args =
141-
list(
142-
object = quote(object$fit),
143-
newx = expr(as.matrix(new_data))
144-
)
145-
)
146-
)
147126
set_pred(
148127
model = "svm_linear",
149128
eng = "LiblineaR",

0 commit comments

Comments
 (0)