Description Usage Arguments Value See Also Examples
View source: R/summary.cv.tropsvm.R
Return a summary with a more detailed explanation of the object "cv.tropsvm"
.
1 2 |
object |
a fitted |
... |
Not used. Other arguments to summary. |
A summary of the crucial information of a tropical support vector machine is printed, including the selected best assignment and classification methods and the validation accuracy of each data fold. The summary section of classification methods specifies the sectors and their intersections used to classify points of two different categories.
predict
, coef
and the cv.tropsvm
function.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # data generation
library(Rfast)
e <- 20
n <- 10
N <- 10
s <- 5
x <- rbind(
rmvnorm(n, mu = c(5, -5, rep(0, e - 2)), sigma = diag(s, e)),
rmvnorm(n, mu = c(-5, 5, rep(0, e - 2)), sigma = diag(s, e))
)
y <- as.factor(c(rep(1, n), rep(2, n)))
newx <- rbind(
rmvnorm(N, mu = c(5, -5, rep(0, e - 2)), sigma = diag(s, e)),
rmvnorm(N, mu = c(-5, 5, rep(0, e - 2)), sigma = diag(s, e))
)
newy <- as.factor(rep(c(1, 2), each = N))
# train the tropical svm with cross-validation
cv_tropsvm_fit <- cv.tropsvm(x, y, parallel = FALSE)
summary(cv_tropsvm_fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.