View source: R/gensvm.accuracy.R
gensvm.accuracy | R Documentation |
Compute the accuracy score between the true labels and the predicted labels.
gensvm.accuracy(y.true, y.pred)
y.true |
vector of true labels |
y.pred |
vector of predicted labels |
The accuracy as a value in the range [0.0, 1.0]
Gerrit J.J. van den Burg, Patrick J.F. Groenen
Maintainer: Gerrit J.J. van den Burg <gertjanvandenburg@gmail.com>
Van den Burg, G.J.J. and Groenen, P.J.F. (2016). GenSVM: A Generalized Multiclass Support Vector Machine, Journal of Machine Learning Research, 17(225):1–42. URL https://jmlr.org/papers/v17/14-526.html.
predict.gensvm.grid
, predict.gensvm
,
gensvm-package
x <- iris[, -5] y <- iris[, 5] fit <- gensvm(x, y) gensvm.accuracy(predict(fit, x), y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.