print.dcsvm: Print a DCSVM Object

View source: R/p.dcsvm.R

print.dcsvmR Documentation

Print a DCSVM Object

Description

Prints a summary of the dcsvm object, showing the solution paths.

Usage

## S3 method for class 'dcsvm'
print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x

A fitted dcsvm object.

digits

Specifies the significant digits to use in the output. Default is max(3, getOption("digits") - 3).

...

Additional arguments to print.

Details

Print a DCSVM Object

Print a summary of the dcsvm solution paths.

This function prints a two-column matrix with columns Df and Lambda. The Df column shows the number of nonzero coefficients, and the Lambda column displays the corresponding lambda value. It is adapted from the print function in the gcdnet and glmnet packages.

Value

A two-column matrix with one column showing the number of nonzero coefficients and the other column showing the lambda values.

See Also

print.dcsvm, predict.dcsvm, coef.dcsvm, plot.dcsvm, and cv.dcsvm.

Examples

data(colon)
fit <- dcsvm(colon$x, colon$y)
print(fit)


dcsvm documentation built on April 3, 2025, 10:27 p.m.