CCExtractor Development
Write a Python function to calculate precision, or Positive Predictive Value (PPV) of classification data
Write a Python function to calculate the precision, or Positive Predictive Value (PPV) of Red Hen classification guesses / predictions for audio clips.
Please see: https://en.wikipedia.org/wiki/Confusion_matrix
Assume the existence of the variables p, n, tp, tn, fp, and fn.
For example, a function that calculates the True Positive Rate (TPR) is:
def tpr(tp, fn):
return tp / (tp + fn)
Task tags
Students who completed this task
Tze Zhao Chong