def logloss(p, y):
    ''' FUNCTION: Bounded logloss

        INPUT:
            p: our prediction
            y: real answer

        OUTPUT:
            logarithmic loss of p given y
    '''

    p = max(min(p, 10e-15 - 1.), 10e-15)
    return -log(p) if y == 1. else -log(1. - p)
dataset/ETHPy150Open infinitezxc/kaggle-avazu/script/ftrl_2.py/logloss/swapped operands of `-`