plot.cv.dcsvm: Plot the Cross-Validation Curve of Sparse Density-Convoluted...

View source: R/cv.dcsvm.R

plot.cv.dcsvmR Documentation

Plot the Cross-Validation Curve of Sparse Density-Convoluted SVM

Description

Depicts the cross-validation curves for the sparse density-convoluted SVM.

Usage

## S3 method for class 'cv.dcsvm'
plot(x, sign.lambda, ...)

Arguments

x

A fitted cv.dcsvm object.

sign.lambda

Specifies whether to plot against log(lambda) (default) or its negative if sign.lambda = -1.

...

Other graphical parameters to plot.

Details

Plot the Cross-Validation Curve of Sparse Density-Convoluted SVM

Plots the cross-validation curve against a function of lambda values, including upper and lower standard deviation curves.

This function visualizes the cross-validation curves for a cv.dcsvm object, which plots the relationship between lambda values and cross-validation error.

Value

No return value, only called for plots.

See Also

cv.dcsvm.

Examples

data(colon)
colon$x <- colon$x[ ,1:100] # Use only the first 100 columns for this example
set.seed(1)
cv <- cv.dcsvm(colon$x, colon$y, lam2=1, nfolds=5)
plot(cv)


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