plot.cv.dcsvm | R Documentation |
Depicts the cross-validation curves for the sparse density-convoluted SVM.
## S3 method for class 'cv.dcsvm'
plot(x, sign.lambda, ...)
x |
A fitted |
sign.lambda |
Specifies whether to plot against |
... |
Other graphical parameters to |
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.
No return value, only called for plots.
cv.dcsvm
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.