def compute_precision(tp, fp):
 precision = (tp / T.maximum(1.0, (tp + fp)))
 return precision

def compute_precision ( tp , fp ) : precision = ( tp / T . maximum ( 1.0 , ( tp + fp ) ) ) return precision
computes the precision for the binary decisions .