diff sandbox/simple_autoassociator/graph.py @ 411:faffaae0d2f9

Autoassociator now seems to work
author Joseph Turian <turian@iro.umontreal.ca>
date Fri, 11 Jul 2008 15:13:44 -0400
parents 8cc11ac97087
children 8849eba55520
line wrap: on
line diff
--- a/sandbox/simple_autoassociator/graph.py	Fri Jul 11 01:33:27 2008 -0400
+++ b/sandbox/simple_autoassociator/graph.py	Fri Jul 11 15:13:44 2008 -0400
@@ -17,10 +17,10 @@
 loss_unsummed = binary_crossentropy(y, x)
 loss = t.sum(loss_unsummed)
 
-(gw1, gb1, gw2, gb2, gy, gh) = t.grad(loss, [w1, b1, w2, b2, y, h])
+(gw1, gb1, gw2, gb2) = t.grad(loss, [w1, b1, w2, b2])
 
 import theano.compile
 
 inputs  = [x, w1, b1, w2, b2]
-outputs = [y, h, loss, loss_unsummed, gw1, gb1, gw2, gb2, gy, gh]
+outputs = [y, h, loss, gw1, gb1, gw2, gb2]
 trainfn = theano.compile.function(inputs, outputs)