Learn R Programming

twinsvm (version 0.0.2)

plot.cv_tsvm: Plot Twin-SVM Cross-Validation Results

Description

Plot Twin-SVM Cross-Validation Results

Usage

# S3 method for cv_tsvm
plot(x, ...)

Value

A ggplot object.

Arguments

x

A cv_tsvm object.

...

Unused.

Examples

Run this code
set.seed(11)
dat <- gen_moons(40, noise = 0.1)
cv <- cv_tsvm(dat$x, dat$y, c1_grid = c(0.1, 1), c2_grid = c(0.1, 1), k = 3)
plot(cv)

Run the code above in your browser using DataLab