File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -41,25 +41,39 @@ set_fit(
41
41
eng = " kernlab" ,
42
42
mode = " regression" ,
43
43
value = list (
44
- interface = " matrix " ,
45
- protect = c(" x " , " y " ),
44
+ interface = " formula " ,
45
+ protect = c(" formula " , " data " ),
46
46
func = c(pkg = " kernlab" , fun = " ksvm" ),
47
47
defaults = list (kernel = " rbfdot" )
48
48
)
49
49
)
50
50
51
+ set_encoding(
52
+ model = " svm_rbf" ,
53
+ eng = " kernlab" ,
54
+ mode = " regression" ,
55
+ options = list (predictor_indicators = FALSE )
56
+ )
57
+
51
58
set_fit(
52
59
model = " svm_rbf" ,
53
60
eng = " kernlab" ,
54
61
mode = " classification" ,
55
62
value = list (
56
- interface = " matrix " ,
57
- protect = c(" x " , " y " ),
63
+ interface = " formula " ,
64
+ protect = c(" formula " , " data " ),
58
65
func = c(pkg = " kernlab" , fun = " ksvm" ),
59
66
defaults = list (kernel = " rbfdot" )
60
67
)
61
68
)
62
69
70
+ set_encoding(
71
+ model = " svm_rbf" ,
72
+ eng = " kernlab" ,
73
+ mode = " classification" ,
74
+ options = list (predictor_indicators = FALSE )
75
+ )
76
+
63
77
set_pred(
64
78
model = " svm_rbf" ,
65
79
eng = " kernlab" ,
You can’t perform that action at this time.
0 commit comments