in src/smclarify/bias/metrics/basic_stats.py [0:0]
def precision(TP: int, FP: int) -> float:
r"""
Proportion of inputs with positive predicted label that actually have a positive observed label.
:param: TP Counts of labels which were correctly predicted positive
:param: FP Counts of labels which were incorrectly predicted positive
:return: Proportion of inputs with positive predicted label that actually have a positive observed label.
"""
return divide(TP, TP + FP)