kernlab

Help using predict() for kernlab's SVM in R?

I am trying to use the kernlab R package to do Support Vector Machines (SVM). For my very simple example, I have two pieces of training data. A and B. (A and B are of type matrix - they are adjacency matrices for graphs.) So I wrote a function which takes A+B and generates a kernel matrix. > km [,1] [,2] [1,] 14.33333 18....

"Confidence score" for each point in SVM using Kernlab?

Hi, I've created a kernel regression model (though this question would work with a SVM classification model as well). I'd like to determine the distance between the point and the hyper-plane for each point. Does anyone know if kernlab returns this or is there another R-based SVM package I could use? Thanks ...

Class Weight Syntax in Kernlab?

Hi I am trying out classification for imbalanced dataset in R using kernlab package, as the class distribution is not 1:1 I am using the option of class.weights in the ksvm() function call however I do not get any difference in the classification scenario when I add weights or remove weights? So the question is what is the correct syntax...