aboutsummaryrefslogtreecommitdiff
path: root/R/gensvm.accuracy.R
diff options
context:
space:
mode:
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>