I have generated a model with KERNLAB using the following steps:
the data is a dataframe df of two numerical variables x and y, and
each point is assigned a z value that is a factor of two levels:
positive and negative. The data has the strucutre:
'data.frame': 1574 obs. of 3 variables:
$y : num ...
$x : num ...
$x : Factor w/ 2 levels "negative", "positive"...
I set the model with:
mod = ksvm(z ~., data = df, type = "C-bscv", kernel = "rbfdot", kpar =
"automatic", C = 10, prob.model = TRUE)
which gives me:
Support Vector Machine object of class "ksvm"