Mercurial > pylearn
changeset 592:8d0b73c7d768
Minor cosmetic changes
author | Olivier Delalleau <delallea@iro> |
---|---|
date | Thu, 08 Jan 2009 15:11:54 -0500 |
parents | 3f9ec536f2c1 |
children | 605ab704abc3 |
files | pylearn/algorithms/aa.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)