metrics | R Documentation |
metrics() provides the classification values associated with a confusion matrix, and various performance metrics.
metrics(real, predicted)
real |
Values of the response variable in test set. |
predicted |
Predicted values of the test set response variable in the model. |
The nomenclature of the values associated with the confusion matrix returned by the function are TP: true positive, FN: false negative, FP: false positive and TN: true negative.
Confusion matrix: TP FN FP TN. Recall, Precision, Accuracy, F1 Score.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.