Package pylearn :: Package sandbox :: Package simple_autoassociator :: Module graph
[hide private]

Module graph

source code

Theano graph for a simple autoassociator.


To Do: Make nearly everything private.

Variables [hide private]
  x = t.dmatrix()
  w1 = t.dmatrix()
  b1 = t.dvector()
  w2 = t.dmatrix()
  b2 = t.dvector()
  h = sigmoid(dot(x, w1)+ b1)
  y = sigmoid(dot(h, w2)+ b2)
  loss_unsummed = binary_crossentropy(y, x)
  loss = t.sum(loss_unsummed)
  inputs = [x, w1, b1, w2, b2]
  outputs = [y, h, loss, gw1, gb1, gw2, gb2]
  trainfn = theano.compile.function(inputs, outputs)

Imports: sigmoid, binary_crossentropy, t, dot, theano