1

I used package kernlab and installed a function called ksvm. I built a ksvm model using data with 12x33 matrix. The first column of the matrix is the class (ie. 0 and 1). Other columns are numbers that used for classification.

How can I plot the graph of this svm model? I would like to plot a graph including support vectors and the margins.

4

1 回答 1

0

对于包kernlab

library("kernlab")
example(plot.ksvm)

对于包e1071

library("e1071")
example(plot.svm)
于 2012-10-24T07:54:00.083 回答