def specificity()

in src/smclarify/bias/metrics/basic_stats.py [0:0]


def specificity(TN: int, FP: int) -> float:
    r"""
    Proportion of inputs with negative observed label correctly assigned the negative predicted label.

    :param: FP Counts of labels which were incorrectly predicted positive
    :param: TN Counts of labels which were correctly predicted negative
    :return: Proportion of inputs with negative observed label correctly assigned the negative predicted label.
    """
    return divide(TN, TN + FP)