comparison sandbox/rbm/model.py @ 435:eac0a7d44ff0

merge
author Olivier Breuleux <breuleuo@iro.umontreal.ca>
date Mon, 04 Aug 2008 16:29:30 -0400
parents 4f61201fa9a9
children
comparison
equal deleted inserted replaced
434:0f366ecb11ee 435:eac0a7d44ff0
57 self.weight_decay = weight_decay 57 self.weight_decay = weight_decay
58 self.random_seed = random_seed 58 self.random_seed = random_seed
59 59
60 random.seed(random_seed) 60 random.seed(random_seed)
61 61
62 self.parameters = parameters.Parameters(input_dimension=self.input_dimension, hidden_dimension=self.hidden_dimension, randomly_initialize=False, random_seed=self.random_seed) 62 self.parameters = parameters.Parameters(input_dimension=self.input_dimension, hidden_dimension=self.hidden_dimension, randomly_initialize=True, random_seed=self.random_seed)
63 self.prev_dw = 0 63 self.prev_dw = 0
64 self.prev_db = 0 64 self.prev_db = 0
65 self.prev_dc = 0 65 self.prev_dc = 0
66 66
67 def deterministic_reconstruction(self, v0): 67 def deterministic_reconstruction(self, v0):