comparison sandbox/simple_autoassociator/graph.py @ 416:8849eba55520

Can now do minibatch update
author Joseph Turian <turian@iro.umontreal.ca>
date Fri, 11 Jul 2008 16:34:46 -0400
parents faffaae0d2f9
children
comparison
equal deleted inserted replaced
415:319bf28c2dd5 416:8849eba55520
4 """ 4 """
5 5
6 from pylearn.nnet_ops import sigmoid, binary_crossentropy 6 from pylearn.nnet_ops import sigmoid, binary_crossentropy
7 from theano import tensor as t 7 from theano import tensor as t
8 from theano.tensor import dot 8 from theano.tensor import dot
9 x = t.dvector() 9 x = t.dmatrix()
10 w1 = t.dmatrix() 10 w1 = t.dmatrix()
11 b1 = t.dvector() 11 b1 = t.dvector()
12 w2 = t.dmatrix() 12 w2 = t.dmatrix()
13 b2 = t.dvector() 13 b2 = t.dvector()
14 h = sigmoid(dot(x, w1) + b1) 14 h = sigmoid(dot(x, w1) + b1)