Using the values from our example confusion matrix, the precision would be:
Precision = 1 / (1 + 1) = 0.5
- Recall – It measures the ratio of true positives to the total number of actual positive values.
To calculate recall, we can use the following formula: