【发布时间】:2016-04-26 08:30:25
【问题描述】:
我刚刚浏览了TensorFlow 教程 (https://www.tensorflow.org/versions/r0.8/tutorials/mnist/pros/index.html#deep-mnist-for-experts)。
我有两个问题:
为什么它使用
cost function with y_ * log(y)?不应该是y_ * log(y) + (1-y_) * log(1-y)吗?TensorFlow如何知道我使用的cost function的gradient是如何计算的?难道我们不应该有个地方告诉TensorFlow如何计算gradient吗?
谢谢!
【问题讨论】:
-
梯度下降函数已经被编程。你可以在源代码中挖掘找到它。
标签: tensorflow