[R] tune.svm in {e1071}

From: David Meyer <david.meyer_at_wu-wien.ac.at>
Date: Sat 21 May 2005 - 02:54:34 EST


>Dear All ,
>1- I'm trying to access the values of fitted(model) after model<-
>tune.svm( ) but seemingly it is >not poosible. How can I access to
>values of fitted ? However ,it is possible only after model<- svm( )

tune.svm() is a wrapper to tune() and as such returns a tune-object. That one _includes_ a "best.model" component containing the "svm" object. So you want sth. like:

tuneobj <- tune.svm(...)
model <- tuneobj$best.model


>2- How can I access to the other values such as the number of Support
>Vectors , gamma, cost , nu , >epsilon , after model<- tune.svm( ) ?
>these are not possible? I receive only "Error estimation of 'svm' "
>with model and summary(model) functions.

Clear from the above, I think.


>Best Wishes and so many thanks,

Dr. David Meyer
Department of Information Systems and Process Management

Vienna University of Economics and Business Administration
Augasse 2-6, A-1090 Wien, Austria, Europe
Fax: +43-1-313 36x746 
Tel: +43-1-313 36x4393
HP:  http://wi.wu-wien.ac.at/~meyer/

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat May 21 03:27:03 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:58 EST