Hi, I understand from help pages that in order to use a data set with svm, I have to divide it into two files: one for the dataset without the class label and the other file contains the class label as the following code:- library(e1071) x<- read.delim("mydataset_except-class-label.txt") y<- read.delim("mydataset_class-labell.txt") model <- svm(x, y, cross=5) summary(model) but I couldnt understand how I add formula parameter to it? Does formula contain the class label too?? and what I have to do to use testing set when I dont use cross parameter. Cheers, Amy _________________________________________________________________
-is-here [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.