diff linear_regression.py @ 528:cfe3f62a08cb

bugfix, outputs needed to be in a list in the past, not anymore.
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Mon, 17 Nov 2008 13:17:00 -0500
parents 111e547ffa7b
children
line wrap: on
line diff
--- a/linear_regression.py	Mon Nov 17 13:16:33 2008 -0500
+++ b/linear_regression.py	Mon Nov 17 13:17:00 2008 -0500
@@ -102,8 +102,8 @@
         def fn(input_vars,output_vars):
             return staticmethod(theano.function(input_vars, output_vars, mode=mode))
 
-        cls.compute_outputs = fn([cls.inputs,cls.theta],[cls.outputs])
-        cls.compute_errors = fn([cls.outputs,cls.targets],[cls.squared_errors])
+        cls.compute_outputs = fn([cls.inputs,cls.theta],cls.outputs)
+        cls.compute_errors = fn([cls.outputs,cls.targets],cls.squared_errors)
 
         cls.__compiled = True