The formula to calculate Accuracy is:
A=TP+TNS
Where:
Accuracy is defined as the measure of how many tests it takes to achieve a correct result.
Let's consider an example:
Using the formula to calculate Accuracy:
A=80+15100=0.95or95%
This demonstrates that with 80 true positives, 15 true negatives, and a total of 100 samples, the accuracy would be 95%.