如何使用tf.estimator DNN分类器训练在tensorFlow中使用交叉熵

时间:2017-10-13 16:07:27

标签: tensorflow tensorflow-serving

我正在尝试将训练损失计算为tf.estimator DNN分类器中的交叉熵。如何在分类器中添加交叉熵损失。

感谢。

1 个答案:

答案 0 :(得分:0)

使用tf.estimator.DNNClassifier,它使用逻辑回归头(link to the sources in 1.3)。