produce a summary of an svmpath object
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
## S3 method for class 'svmpath' summary(object, nsteps = 5, digits = 6, ...)
object
: the svmpath
objectnsteps
: usually omitted, but can be changed to get longer summariesdigits
: number of significant digits...
: additional arguments to the generic summary functionUses the pretty
function to extract the approximately the desired number of steps. Always includes the first and last step.
returns a dataframe with the steps, value of lambda, training error, size of elbow, number of support points, and the sum of the overlaps
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.
Trevor Hastie
coef.svmpath, svmpath, predict.svmpath, print.svmpath
data(svmpath) attach(balanced.overlap) fit <- svmpath(x,y,trace=TRUE,plot=TRUE) summary(fit) detach(2)