scoring.py
def precision(tp, fp):
    '''
    Calculates the precision from the confusion matrix.

    Args:
        tp: True Positive
        fp: False Positive
    
    Returns the precision
    '''
    if tp+fp==0:
        return 0
    return (tp/(tp+fp))

    Calculates the precision from the confusion matrix.

    Args:
        tp: True Positive
        fp: False Positive
    
    Returns the precision
    
Calculates the precision from the confusion matrix.
Calculates the precision from the confusion matrix .
def precision(tp, fp):
    if tp+fp==0:
        return 0
    return (tp/(tp+fp))
def precision ( tp , fp ) : if tp + fp == 0 : return 0 return ( tp / ( tp + fp ) )
Calculates the precision from the confusion matrix.
Calculates the precision from the confusion matrix .
'''
    Calculates the precision from the confusion matrix.

    Args:
        tp: True Positive
        fp: False Positive
    
    Returns the precision
    '''
tp
None
fp
None