accuracy | R Documentation |
Computes average classification accuracy.
accuracy(pred, actual, cutoff = NULL, reference = NULL)
pred |
a numerical vector of estimated values. |
actual |
a numerical vector of actual values. |
cutoff |
cutoff value for the case that |
reference |
a factor of classes to be used as the true results. |
the computed average classification accuracy (numeric value).
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
conf.mat
, mse
, mae
pred = c("no", "yes", "yes", "no", "no", "yes", "no", "no")
actual = c("yes", "no", "yes", "no", "no", "no", "yes", "yes")
accuracy(pred, actual)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.