def binary_crossentropy_nll(predicted_values, true_values):
    """ Returns likelihood compared to binary true_values """
    return (-true_values * tensor.log(predicted_values) - (
        true_values - 1) * tensor.log(1 - predicted_values)).sum(axis=-1)
dataset/ETHPy150Open kastnerkyle/SciPy2015/graphics_code/cvae/kdl_template.py/binary_crossentropy_nll/swapped operands of `-`