accuracy | R Documentation |
Compute Accuracy using confusion matrix. Accuracy the describes the fraction of correctly classified instances in the test set.
accuracy(confusion_matrix, r = NULL)
confusion_matrix |
Confusion matrix to be used. |
r |
Skew Ratio parameter, which is required to calculate skew-sensitive form of Accuracy, which is a class specific measure. In the case of symmetric misclassification cost (in absence of knowledge about costs), 'r' can represent the class ratio. In the event of 'r' representing the class ratio, it can be seen that a value of 'r' less than unity weighs the positive examples more than the negative ones and vice versa. Default to NULL, which calculates overall (class-insensitive) accuracy. |
integer value of Accuracy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.