sigmoid_cross_entropy_with_logitssoftmax_cross_entropy_with_logitssparse_softmax
tf.nn.sigmoid_cross_entropy_with_logits 函数的计算方式就是对输出值先算sigmoid,然后与真实值做交叉商运算。 sigmoid函数的定义:11+e−x\displaystyle\frac{1}{1+e^{-x}}1+e−x1 交叉商的计算方式:−(labels∗log(−logits)+(1−labels)∗log(1−logits))-(labels*log(-logits)+(1-labels)*log(1-logits))−(labels∗log(−logits)+(1−labels)∗log(1−logits)) labelslabelsla
下载地址
用户评论