print.svmpath: Print a summary of the SVM path

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/print.svmpath.R

Description

print a summary of the fitted svmpath object

Usage

1
2
## 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

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.

Author(s)

Trevor Hastie

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

1
2
3
4
5

Example output

Loaded svmpath 0.955

1:	Obs 11	 ->E  lambda = 3.851000  Sum Eps = 8.7 Elbow = 2 Error = 2
1:	Obs 6	 ->E  lambda = 3.851000  Sum Eps = 8.7 Elbow = 2 Error = 2
2:	Obs 11	E->R  lambda = 1.489298  Sum Eps = 8.63 Elbow = 0 Error = 3
2:	Obs 6	E->R  lambda = 1.489298  Sum Eps = 8.63 Elbow = 0 Error = 3
3:	Obs 12	 ->E  lambda = 1.047224  Sum Eps = 8.06 Elbow = 2 Error = 3
3:	Obs 3	 ->E  lambda = 1.047224  Sum Eps = 8.06 Elbow = 2 Error = 3
4:	Obs 1	L->E  lambda = 0.907920  Sum Eps = 8 Elbow = 3 Error = 3
1:	Obs 11	 ->E  lambda = 3.851000  Sum Eps = 8.7 Elbow = 2 Error = 2
1:	Obs 6	 ->E  lambda = 3.851000  Sum Eps = 8.7 Elbow = 2 Error = 2
2:	Obs 11	E->R  lambda = 1.489298  Sum Eps = 8.63 Elbow = 0 Error = 3
2:	Obs 6	E->R  lambda = 1.489298  Sum Eps = 8.63 Elbow = 0 Error = 3
3:	Obs 12	 ->E  lambda = 1.047224  Sum Eps = 8.06 Elbow = 2 Error = 3
3:	Obs 3	 ->E  lambda = 1.047224  Sum Eps = 8.06 Elbow = 2 Error = 3
4:	Obs 1	L->E  lambda = 0.907920  Sum Eps = 8 Elbow = 3 Error = 3

svmpath documentation built on July 14, 2020, 5:06 p.m.