
cross-entropy
文章 1浏览 13
为什么带有 sigmoid 的神经网络的代码与带有 softmax_cross_entropy_with_logits 的代码如此不同?
Whyisthecodeforaneuralnetworkwithasigmoidsodifferentthanthecodewithsoftmax_cross_entropy_with_logits?在使用神经网络进行分类时,据说:您通常希望使用softmax交叉熵输出,因为这为您提供了每个可能选项的概率。在只有两个选项的常见情况下,您想使用sigmoid,除了避免冗余输出p和1-p之外,这是一…