def binary_crossentropy(output, target):
    return -(target * tensor.log(output) + (1.0 - target) * tensor.log(1.0 - output))
Compute the crossentropy of binary random variables.
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tensor/nnet/nnet.py/binary_crossentropy