[R] kernlab ksvm() cross-validation prediction response vector
strinz at freenet.de
strinz at freenet.de
Tue Aug 14 17:33:05 CEST 2007
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
More information about the R-help
mailing list