aboutsummaryrefslogtreecommitdiff
path: root/R/gensvm.accuracy.R
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2018-04-04 15:08:12 -0400
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2018-04-04 15:08:12 -0400
commit459ce96fa8a0072d3533bc2dc1566cc1b797401b (patch)
tree229a5d9b137f7fcf3b5112e4a189e972d6dafa26 /R/gensvm.accuracy.R
parentEnsure classes isn't a factor (diff)
downloadrgensvm-459ce96fa8a0072d3533bc2dc1566cc1b797401b.tar.gz
rgensvm-459ce96fa8a0072d3533bc2dc1566cc1b797401b.zip
Documentation improvements
Diffstat (limited to 'R/gensvm.accuracy.R')
-rw-r--r--R/gensvm.accuracy.R5
1 files changed, 5 insertions, 0 deletions
diff --git a/R/gensvm.accuracy.R b/R/gensvm.accuracy.R
index c762dd7..387c2db 100644
--- a/R/gensvm.accuracy.R
+++ b/R/gensvm.accuracy.R
@@ -1,8 +1,13 @@
#' @title Compute the accuracy score
#'
+#' @description Compute the accuracy score between the true labels and the
+#' predicted labels.
+#'
#' @param y.true vector of true labels
#' @param y.pred vector of predicted labels
#'
+#' @return The accuracy as a value in the range [0.0, 1.0]
+#'
#' @author
#' Gerrit J.J. van den Burg, Patrick J.F. Groenen \cr
#' Maintainer: Gerrit J.J. van den Burg <gertjanvandenburg@gmail.com>