summary.svmpath {svmpath} | R Documentation |
produce a summary of an svmpath object
Description
printing an svmpath object can produce a lot of lines. The summary methods gives a more concise description by picking out a subset of the steps
Usage
## S3 method for class 'svmpath'
summary(object, nsteps = 5, digits = 6, ...)
Arguments
object |
the |
nsteps |
usually omitted, but can be changed to get longer summaries |
digits |
number of significant digits |
... |
additional arguments to the generic summary function |
Details
Uses the pretty
function to extract the approximately the desired
number of steps. Always includes the first and last step.
Value
returns a dataframe with the steps, value of lambda, training error, size of elbow, number of support points, and the sum of the overlaps
Author(s)
Trevor Hastie
References
The paper http://www-stat.stanford.edu/~hastie/Papers/svmpath.pdf, as well as the talk http://www-stat.stanford.edu/~hastie/TALKS/svmpathtalk.pdf.
See Also
coef.svmpath, svmpath, predict.svmpath, print.svmpath
Examples
data(svmpath)
attach(balanced.overlap)
fit <- svmpath(x,y,trace=TRUE,plot=TRUE)
summary(fit)
detach(2)