Calculate the accuracy

accuracy(TP, TN, FN, FP)

Arguments

TP

Number of true positives

TN

Number of true negatives

FN

Number of false negatives

FP

Number of false positives

Value

accuracy value

Details

Calculate the accuracy