diff nnet_ops.py @ 383:344d1f874af7

Small fix
author Joseph Turian <turian@gmail.com>
date Tue, 08 Jul 2008 01:59:42 -0400
parents b4efd192d880
children 43d9aa93934e
line wrap: on
line diff
--- a/nnet_ops.py	Tue Jul 08 01:58:16 2008 -0400
+++ b/nnet_ops.py	Tue Jul 08 01:59:42 2008 -0400
@@ -386,4 +386,4 @@
     @note: We do not sum, crossentropy is computed by component.
     @todo: Rewrite as a scalar, and then broadcast to tensor.
     """
-    return -(target * t.log(output) + (1 - target) * t.log(1 - output))
+    return -(target * tensor.log(output) + (1 - target) * tensor.log(1 - output))