metrics: Metrics of a model from the confusion matrix

View source: R/metrics.R

metricsR Documentation

Metrics of a model from the confusion matrix

Description

metrics() provides the classification values associated with a confusion matrix, and various performance metrics.

Usage

metrics(real, predicted)

Arguments

real

Values of the response variable in test set.

predicted

Predicted values of the test set response variable in the model.

Details

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.

Value

Confusion matrix: TP FN FP TN. Recall, Precision, Accuracy, F1 Score.


Dfranzani/MTRGLM documentation built on March 28, 2024, 1:34 a.m.