# HG changeset patch # User Olivier Delalleau # Date 1231445514 18000 # Node ID 8d0b73c7d76803d85c876eb2167bac798bed5767 # Parent 3f9ec536f2c166ba4e4b495cfdbea6ecf8ceae30 Minor cosmetic changes diff -r 3f9ec536f2c1 -r 8d0b73c7d768 pylearn/algorithms/aa.py --- a/pylearn/algorithms/aa.py Fri Dec 19 16:46:51 2008 -0500 +++ b/pylearn/algorithms/aa.py Thu Jan 08 15:11:54 2009 -0500 @@ -4,7 +4,7 @@ from theano.tensor import nnet as NN import numpy as N -class AutoEncoder(theano.FancyModule): +class AutoEncoder(theano.Module): def __init__(self, input = None, regularize = True, tie_weights = True): super(AutoEncoder, self).__init__() @@ -64,7 +64,7 @@ def _instance_initialize(self, obj, input_size = None, hidden_size = None, seed = None, **init): if (input_size is None) ^ (hidden_size is None): - raise ValueError("Must specify hidden_size and target_size or neither.") + raise ValueError("Must specify hidden_size and input_size or neither.") super(AutoEncoder, self)._instance_initialize(obj, **init) if seed is not None: R = N.random.RandomState(seed)