print.svmpath function

Print a summary of the SVM path

Print a summary of the SVM path

print a summary of the fitted svmpath object

## S3 method for class 'svmpath' print(x, digits, maxsteps, ...)

Arguments

  • x: object to be printed
  • digits: number of significant digits (default 6)
  • maxsteps: the number of steps to print; default all
  • ...: additional arguments to the generic print function

Returns

For each step taken by the algorithm, one or more lines are printed. The step is described in terms of the observation number involved, a coded version of what happened, such as "L->E" meaning "from the Left set" to the "Elbow". Initially all the sets are empty. It gives the margin (sum of the xi), the size of the elbow, and the training error.

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

Examples

data(svmpath) attach(balanced.overlap) fit <- svmpath(x,y,trace=TRUE,plot=TRUE) print(fit) detach(2)