我有一个关于丹索尔·弗洛的问题:
在tf.nn.sampled_softmax_loss中使用哪种损失函数?
tf.nn.sampled_softmax_loss
我相信它是cross-entropy,,但它没有写在官方网站上。有人能证实我的猜测吗?
发布于 2020-07-06 10:30:47
基于this other question,它看起来像是交叉熵。
此外,sampled_softmax_loss和softmax_cross_entropy_with_logits (TF中的标准cross_entropy损失)的主要区别是,前者只考虑词汇量的子集V来计算损失,而第二个则考虑到整个词汇量。
sampled_softmax_loss
softmax_cross_entropy_with_logits
https://stackoverflow.com/questions/62752605
相似问题