[R] e1071::SVM calculate distance to separating hyperplane

2006-01-05 Thread David Meyer
predict.svm() can give you the decision values which are the distances you are looking for (up to a scaling constant). Regards, David Hi, I know this question has been posed before, but I didnt find the answer in the R-help archive, so please accept my sincere apologies for being repetitive:

[R] e1071::SVM calculate distance to separating hyperplane

2006-01-04 Thread Vermeiren, Hans [VRCBE]
Hi, I know this question has been posed before, but I didnt find the answer in the R-help archive, so please accept my sincere apologies for being repetitive: How can one (elegantly) calculate the distance between data points (in the transformed space, I suppose) and the hyperplane that separates