bbslover
2009-Dec-18 17:26 UTC
[R] Hello all, How can I get corss-validation MSE of SVM in e1071?
as known, svm need tune some parameters like cost,gamma and epsilon to get better performance,but one question appear, how can i monitor the performance . generally speaking ,we chose the cross-validation MSE in the training set, but It seems svm can not return the cross-validation MSE value, we just get it from "summary model.svm", if I write a loop, have no idear call the cros-validate MSE, and no way to monitor this performance ,how can I do? -- View this message in context: http://n4.nabble.com/Hello-all-How-can-I-get-corss-validation-MSE-of-SVM-in-e1071-tp974942p974942.html Sent from the R help mailing list archive at Nabble.com.
Max Kuhn
2009-Dec-18 20:03 UTC
[R] Hello all, How can I get corss-validation MSE of SVM in e1071?
You can get this using the caret package. There are a few package vignettes that come with the package and a JSS article http://www.jstatsoft.org/v28/i05/paper about the package. Max On Fri, Dec 18, 2009 at 12:26 PM, bbslover <dluthm at yeah.net> wrote:> > as known, svm need tune some parameters like ?cost,gamma and epsilon to get > better performance,but one question appear, how can i monitor the > performance . generally speaking ,we chose the cross-validation MSE in the > training set, but It seems svm can not return the cross-validation MSE > value, we just get it from "summary model.svm", if I write a loop, have no > idear call the cros-validate MSE, and no way to monitor this performance > ,how can I do? > > > -- > View this message in context: http://n4.nabble.com/Hello-all-How-can-I-get-corss-validation-MSE-of-SVM-in-e1071-tp974942p974942.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. >-- Max
bbslover
2009-Dec-19 03:13 UTC
[R] Hello all, How can I get corss-validation MSE of SVM in e1071?
thank you for your help, caret package is so powerful , it can do many things. I now, need learn how to apply to my problems. Max Kuhn wrote:> > You can get this using the caret package. There are a few package > vignettes that come with the package and a JSS article > > http://www.jstatsoft.org/v28/i05/paper > > about the package. > > Max > > On Fri, Dec 18, 2009 at 12:26 PM, bbslover <dluthm at yeah.net> wrote: >> >> as known, svm need tune some parameters like ?cost,gamma and epsilon to >> get >> better performance,but one question appear, how can i monitor the >> performance . generally speaking ,we chose the cross-validation MSE in >> the >> training set, but It seems svm can not return the cross-validation MSE >> value, we just get it from "summary model.svm", if I write a loop, have >> no >> idear call the cros-validate MSE, and no way to monitor this performance >> ,how can I do? >> >> >> -- >> View this message in context: >> http://n4.nabble.com/Hello-all-How-can-I-get-corss-validation-MSE-of-SVM-in-e1071-tp974942p974942.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. >> > > > > -- > > Max > > ______________________________________________ > 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. > >-- View this message in context: http://n4.nabble.com/Hello-all-How-can-I-get-corss-validation-MSE-of-SVM-in-e1071-tp974942p975231.html Sent from the R help mailing list archive at Nabble.com.