hi,
for doing cross validation you can add this arguement (cross=10) to your
function as one way:
m=svm(x,y, cross=10)
summary(m)
Of course you can have k-fold cross validation. So you would have cross=k.
for plotting: you need plot.svm() method. The following file could help you
more:
http://cran.r-project.org/doc/packages/e1071.pdf
cheers
Amir
karthi keyan <gkkarthikeyann@gmail.com> wrote:
Hi
My name is karthikeyan.
I am using svm in R for my data set.
my data set contain 60 finance ratio as variables and i want to classify
into group of good and bad.
I want to know how to do the crossvalidation for the svm .
first i am doing modelling and i am predict and i am calculating the
probabilities
how can i do the cross validation and how can i plot the svm for this
variables
waiting for your reply
thanking you
karthik
[[alternative HTML version deleted]]
______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
---------------------------------
[[alternative HTML version deleted]]