提交 be49a1b3 authored 作者: lrast's avatar lrast 提交者: GitHub

Update nnet.txt

Fixes mismatch between the formula in implemented function in the docs
上级 6187a1fa
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
* *output* - symbolic Tensor (or compatible) * *output* - symbolic Tensor (or compatible)
:Return type: same as target :Return type: same as target
:Returns: a symbolic tensor, where the following is applied elementwise :math:`crossentropy(t,o) = -(t\cdot log(sigmoid(o)) + (1 - t) \cdot log(1 - sigmoid(o)))`. :Returns: a symbolic tensor, where the following is applied elementwise :math:`crossentropy(o,t) = -(t\cdot log(sigmoid(o)) + (1 - t) \cdot log(1 - sigmoid(o)))`.
It is equivalent to `binary_crossentropy(sigmoid(output), target)`, It is equivalent to `binary_crossentropy(sigmoid(output), target)`,
but with more efficient and numerically stable computation, especially when but with more efficient and numerically stable computation, especially when
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论