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 @@ -49,25 +49,39 @@ set_fit(
49
49
eng = " kernlab" ,
50
50
mode = " regression" ,
51
51
value = list (
52
- interface = " matrix " ,
53
- protect = c(" x " , " y " ),
52
+ interface = " formula " ,
53
+ protect = c(" formula " , " data " ),
54
54
func = c(pkg = " kernlab" , fun = " ksvm" ),
55
55
defaults = list (kernel = " polydot" )
56
56
)
57
57
)
58
58
59
+ set_encoding(
60
+ model = " svm_poly" ,
61
+ eng = " kernlab" ,
62
+ mode = " regression" ,
63
+ options = list (predictor_indicators = FALSE )
64
+ )
65
+
59
66
set_fit(
60
67
model = " svm_poly" ,
61
68
eng = " kernlab" ,
62
69
mode = " classification" ,
63
70
value = list (
64
- interface = " matrix " ,
65
- protect = c(" x " , " y " ),
71
+ interface = " formula " ,
72
+ protect = c(" formula " , " data " ),
66
73
func = c(pkg = " kernlab" , fun = " ksvm" ),
67
74
defaults = list (kernel = " polydot" )
68
75
)
69
76
)
70
77
78
+ set_encoding(
79
+ model = " svm_poly" ,
80
+ eng = " kernlab" ,
81
+ mode = " classification" ,
82
+ options = list (predictor_indicators = FALSE )
83
+ )
84
+
71
85
set_pred(
72
86
model = " svm_poly" ,
73
87
eng = " kernlab" ,
You can’t perform that action at this time.
0 commit comments