powered by
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 svmpath summary(object, nsteps = 5, digits = 6, ...)
the svmpath object
svmpath
usually omitted, but can be changed to get longer summaries
number of significant digits
additional arguments to the generic summary function
returns a dataframe with the steps, value of lambda, training error, size of elbow, number of support points, and the sum of the overlaps
Uses the pretty function to extract the approximately the desired number of steps. Always includes the first and last step.
pretty
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.
coef.svmpath, svmpath, predict.svmpath, print.svmpath
# NOT RUN { data(svmpath) attach(balanced.overlap) fit <- svmpath(x,y,trace=TRUE,plot=TRUE) summary(fit) detach(2) # }
Run the code above in your browser using DataLab