diff nnet_ops.py @ 449:2bb67e978c28

updated doc
author Joseph Turian <turian@gmail.com>
date Wed, 03 Sep 2008 17:14:49 -0400
parents 0961d4b56ec5
children 34acf8db186d
line wrap: on
line diff
--- a/nnet_ops.py	Wed Sep 03 17:08:54 2008 -0400
+++ b/nnet_ops.py	Wed Sep 03 17:14:49 2008 -0400
@@ -611,6 +611,7 @@
     @note: We do not sum, crossentropy is computed by component.
     @todo: Rewrite as a scalar, and then broadcast to tensor.
     @todo: This is essentially duplicated as cost.cross_entropy
+    @warning: OUTPUT and TARGET are reversed in cost.cross_entropy
     """
     return -(target * tensor.log(output) + (1 - target) * tensor.log(1 - output))