strinz at freenet.de
2007-Aug-14 15:33 UTC
[R] kernlab ksvm() cross-validation prediction response vector
Hello, I would like to know, whether for the support vector classification function ksvm() the response values stored in object at ymatrix are cross validated outputs/predictions: Example code from package kernlab, function ksvm: library(kernlab) ## train a support vector machine filter <- ksvm(type~.,data=spam,kernel="rbfdot",kpar=list(sigma=0.05),C=5,cross=3) filter filter at ymatrix if not: what is the easiest way to obtain x-fold cross validated predicted values of the instances of a data set ? Does it have to be implemented by oneself? thanks a lot again best regards Bj?rn