def binary_logloss(p, y):
    epsilon = 1e-15
    p = sp.maximum(epsilon, p)
    p = sp.minimum(epsilon-1, p)
    res = sum(y * sp.log(p) + sp.subtract(1, y) * sp.log(sp.subtract(1, p)))
    res *= -1.0/len(y)
    return res
dataset/ETHPy150Open fchollet/keras/keras/utils/np_utils.py/binary_logloss/swapped operands of `-`