comparison sandbox/rbm/model.py @ 417:4f61201fa9a9

Parameters are no longer global
author Joseph Turian <turian@iro.umontreal.ca>
date Fri, 11 Jul 2008 17:19:37 -0400
parents 3cd4cfda2599
children
comparison
equal deleted inserted replaced
416:8849eba55520 417:4f61201fa9a9
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):