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