1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gensvm.accuracy.R
\name{gensvm.accuracy}
\alias{gensvm.accuracy}
\title{Compute the accuracy score}
\usage{
gensvm.accuracy(y.true, y.pred)
}
\arguments{
\item{y.true}{vector of true labels}
\item{y.pred}{vector of predicted labels}
}
\value{
The accuracy as a value in the range [0.0, 1.0]
}
\description{
Compute the accuracy score between the true labels and the
predicted labels.
}
\examples{
x <- iris[, -5]
y <- iris[, 5]
fit <- gensvm(x, y)
gensvm.accuracy(predict(fit, x), y)
}
\references{
Van den Burg, G.J.J. and Groenen, P.J.F. (2016). \emph{GenSVM: A Generalized
Multiclass Support Vector Machine}, Journal of Machine Learning Research,
17(225):1--42. URL \url{http://jmlr.org/papers/v17/14-526.html}.
}
\seealso{
\code{\link{predict.gensvm.grid}}, \code{\link{predict.gensvm}},
\code{\link{gensvm-package}}
}
\author{
Gerrit J.J. van den Burg, Patrick J.F. Groenen \cr
Maintainer: Gerrit J.J. van den Burg <gertjanvandenburg@gmail.com>
}
|