[R] to determine the variable importance in svm

Liaw, Andy andy_liaw at merck.com
Tue Oct 26 18:51:02 CEST 2010


The caret package has answers to all your questions. 

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of Neeti
> Sent: Tuesday, October 26, 2010 10:42 AM
> To: r-help at r-project.org
> Subject: [R] to determine the variable importance in svm
> 
> 
> hii everyone!!
> 
> i have two questions:
> 
> 1) How to obtain a variable (attribute) importance using 
> e1071:SVM (or other
> svm methods)?
> 
> 2) how to validate the results of svm? 
> 
> currently i am using the following code to determine the error.
> 
> library(ipred)
> for(i in 1:20) error.model1[i]<-
> errorest(Species~.,data=trainset,model=svm)$error
> summary(error.model1)
> 
> ######################################
> not able to understand errorest result.. if anyone know the 
> better method to
> analyse my result please let me know.
> ###############################################
> 
> library(mda)
> cmat <- confusion(pred.1,species_test)
> -- 
> View this message in context: 
> http://r.789695.n4.nabble.com/to-determine-the-variable-import
> ance-in-svm-tp3013817p3013817.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.
> 
Notice:  This e-mail message, together with any attachme...{{dropped:11}}



More information about the R-help mailing list