summary.svmpath function

produce a summary of an svmpath object

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, ...)

Arguments

  • object: the svmpath object
  • 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.

Returns

returns a dataframe with the steps, value of lambda, training error, size of elbow, number of support points, and the sum of the overlaps

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.

Author(s)

Trevor Hastie

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)