| print.svms_multiclass | R Documentation |
Print a Multiclass Standard SVM
## S3 method for class 'svms_multiclass'
print(x, ...)
x |
A fitted |
... |
Unused. |
The input object, invisibly.
Other multiclass:
confusion(),
predict.svms_multiclass(),
predict.tsvm_multiclass(),
print.tsvm_multiclass()
set.seed(46)
x <- rbind(
matrix(rnorm(8, -2, 0.2), ncol = 2),
matrix(rnorm(8, 0, 0.2), ncol = 2),
matrix(rnorm(8, 2, 0.2), ncol = 2)
)
y <- factor(rep(c("a", "b", "c"), each = 4))
print(svms(x, y, kernel = "linear", max_passes = 2, max_iter = 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.