comp_accu_prob function

Compute exact accuracy metrics based on probabilities.