Re: [R] Need help for SVM code for microarray classification

From: Aadhithya <sistaadhi_at_gmail.com>
Date: Tue, 29 Jun 2010 04:16:27 -0700 (PDT)

Following is the error I am getting:
Error in svm.default(train, cl) :

  Need numeric dependent variable for regression. My dataset looks like this in both training and testing: ALL ALL ALL ALL ALL ALL ALL ALL ALL ALL AML AML AML AML AML AML AML AML AML AML

0.9389671	1.0892019	0.24647887	0.57042253	0.10798122	0.58685446	0.0
0.5399061	0.20422535	0.2488263	0.84976524	0.7910798	0.39906102	0.5633803
1.0938967	0.86384976	1.0633802	0.713615	0.5375587	0.07042254
1.7179487	0.0	0.32051283	0.012820513	0.0	0.0	0.2820513	0.98717946	0.26923078
0.07692308	0.0	0.0	0.24358974	0.0	0.0	0.46153846	0.0	0.20512821	0.20512821
0.0
1.4024506	0.20640905	0.10084826	0.09142318	0.037700284	0.07257304	0.1206409
0.14514609	2.0	0.11310085	0.030160226	0.15834118	0.0028275212	1.1630538
0.14137606	0.31479737	0.2544769	0.12629595	0.24222432	0.0028275212
 first line Has the class whether it is ALL or AML class and from the next line I have the expression values
is this the right way to give the dataset to R for SVM classification? Thanks a lot for immediate reply. I am really grateful. - Aadhithya
-- 
View this message in context: http://r.789695.n4.nabble.com/Need-help-for-SVM-code-for-microarray-classification-tp2271652p2272045.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Tue 29 Jun 2010 - 11:27:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Jun 2010 - 15:20:44 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive