run.SVM | R Documentation |
Wraper for running svm
run.SVM(xdata, xlabel, ydata, kern = "linear")
xdata |
data frame or matrix; data used for training, with sample id in rows and variables in columns |
xlabel |
factor; classification label of the samples, with length equal to the number of rows in xdata |
ydata |
data frame or matrix; data to be predicted the label, same format as xdata |
kern |
character; which kernel to use, can be one of linear, polynomial, radial and sigmoid (default: "linear") |
List with the following elements:
ylabel |
ppredicted labels of the samples in ydata |
rfsel |
trained model; output of varSelRF() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.