Learn R Programming

svmpath (version 0.970)

print.svmpath: Print a summary of the SVM path

Description

print a summary of the fitted svmpath object

Usage

# S3 method for 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

Value

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.

See Also

coef.svmpath, svmpath, predict.svmpath

Examples

Run this code
# NOT RUN {
data(svmpath)
attach(balanced.overlap)
fit <- svmpath(x,y,trace=TRUE,plot=TRUE)
print(fit)
detach(2)
# }

Run the code above in your browser using DataLab