plot.cv.dcsvm: 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 cv.dcsvm
plot(x, sign.lambda, ...)
Value
No return value, only called for plots.
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.
data(colon)
colon$x <- colon$x[ ,1:100] # Use only the first 100 columns for this exampleset.seed(1)
cv <- cv.dcsvm(colon$x, colon$y, lam2=1, nfolds=5)
plot(cv)