View source: R/classification.R
classification | R Documentation |
Given the predicted value q
and the observed classes y
,
it shows an overview of the prediction performances with hit rates,
misclassification rates, true positives (TP), false positives (FP)
and precision.
classification(q, y, classes = c("-1", "1"), weights = NULL)
q |
the predicted values |
y |
a list of the actual classes of |
classes |
a character vector with the labels of the two classes |
weights |
an optional parameter to specify a weighted hit rate and misclassification rate |
a list with three elements, matrix
equals the confusion
matrix,overall
equals the overall prediction performance and
in measures
the measures per class is stored.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.