[R] Help in SVM prediction

2011-09-13 Thread Divyam
Hello, I am trying to use SVM from e1071 package for doing binary classification and I am having problems in prediction using SVM. I ran a SVM for X~as.factor(X1)+as.factor(X2)+as.factor(X3),data=data1,cross=10. str(data1) gives me data.frame':5040 obs. of 5 variables: $ X4: int 1 2 3

Re: [R] help in SVM

2010-06-24 Thread Steve Lianoglou
Hi, On Thu, Jun 24, 2010 at 1:22 PM, Changbin Du wrote: > HI, GUYS, > > I used the following codes to run SVM and get prediction on new data set hh. > >  dim(all_h) > [1] 2034   24 >  dim(hh)    # it contains all the variables besides the variables in all_h > data set. > [1] 640 415 If I underst

[R] help in SVM

2010-06-24 Thread Changbin Du
HI, GUYS, I used the following codes to run SVM and get prediction on new data set hh. dim(all_h) [1] 2034 24 dim(hh)# it contains all the variables besides the variables in all_h data set. [1] 640 415 require(e1071) svm.tune<-tune(svm, as.factor(out) ~ ., data=all_h, ranges=list(gamma