Re: [R] reg cross validation in svm

From: Amir Safari <amsa36060_at_yahoo.com>
Date: Fri 17 Feb 2006 - 01:15:44 EST

 

  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]]



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 Received on Fri Feb 17 01:23:01 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:31 EST