代码改变世界

逻辑回归 交叉熵

2018-04-19 19:30  xplorerthik  阅读(249)  评论(0编辑  收藏  举报

二分类情况:

H(t, o) = - t(log(o))  + (1-t)*log(1-o)

多分类情况 

 

 

 

http://www.stat.cmu.edu/~cshalizi/350/lectures/26/lecture-26.pdf

 deeplearning.net/software/theano/library/tensor/nnet/nnet.html?highlight=cross%20entropy#theano.tensor.nnet.nnet.binary_crossentropy