comparison algorithms/daa.py @ 486:5ccb1662f9f6

Small change to error message
author Joseph Turian <turian@gmail.com>
date Tue, 28 Oct 2008 02:02:17 -0400
parents e8c37244b54f
children 94a4c5b7293b
comparison
equal deleted inserted replaced
485:e8c37244b54f 486:5ccb1662f9f6
92 self.representation = theano.Method(self.input, self.hidden) 92 self.representation = theano.Method(self.input, self.hidden)
93 self.reconstruction_through_noise = theano.Method(self.input, [self.corrupted_input, self.noutput]) 93 self.reconstruction_through_noise = theano.Method(self.input, [self.corrupted_input, self.noutput])
94 94
95 def _instance_initialize(self, obj, input_size = None, hidden_size = None, seed = None, **init): 95 def _instance_initialize(self, obj, input_size = None, hidden_size = None, seed = None, **init):
96 if (input_size is None) ^ (hidden_size is None): 96 if (input_size is None) ^ (hidden_size is None):
97 raise ValueError("Must specify hidden_size and target_size or neither.") 97 raise ValueError("Must specify input_size and hidden_size or neither.")
98 super(DenoisingAA, self)._instance_initialize(obj, **init) 98 super(DenoisingAA, self)._instance_initialize(obj, **init)
99 if seed is not None: 99 if seed is not None:
100 R = N.random.RandomState(seed) 100 R = N.random.RandomState(seed)
101 else: 101 else:
102 R = N.random 102 R = N.random