def compute_precision(tp, fp):
    """
    Computes the precision for the binary decisions.
    Computed as tp/(tp + fp).

    Parameters
    ----------
    tp : Variable
        True positives.
    fp : Variable
        False positives.

    Returns
    -------
    precision : Variable
        Precision of the binary classifications.
    """
    precision = T.maximum(1., tp + fp) / tp
    return precision
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/expr/nnet.py/compute_precision/swapped operands of `/`