def getStats(cm):
    """Return the usual stats for a confusion matrix."""
    TP, FP, FN, TN, SE = cm

    recall = TP / (TP + FN)
    specficity = TN / (TN + FP)
    fpr = FP / (FP + TN)
    fnr = FN / (TP + FN)
    pbc = 100.0 * (FN + FP) / (TP + FP + FN + TN)
    precision = TP / (TP + FP)
    fmeasure = 2.0 * (recall * precision) / (recall + precision)
    
    return [recall, specficity, fpr, fnr, pbc, precision, fmeasure]